file called <code>first.pl</code>, and put it in your
<code>cgi-bin</code> directory.</p>
- <div class="example"><p><code>
- #!/usr/bin/perl<br />
- print "Content-type: text/html\n\n";<br />
- print "Hello, World.";
- </code></p></div>
+ <pre class="prettyprint lang-perl">
+#!/usr/bin/perl
+print "Content-type: text/html\n\n";
+print "Hello, World.";
+ </pre>
+
<p>Even if you are not familiar with Perl, you should be able
to see what is happening here. The first line tells Apache
<a href="../env.html">add your own environment variables</a>
to the basic ones provided by default.</p>
- <div class="example"><p><code>
- #!/usr/bin/perl<br />
- print "Content-type: text/html\n\n";<br />
- foreach $key (keys %ENV) {<br />
- <span class="indent">
- print "$key --> $ENV{$key}<br>";<br />
- </span>
- }
- </code></p></div>
+ <pre class="prettyprint lang-perl">
+#!/usr/bin/perl
+print "Content-type: text/html\n\n";
+foreach $key (keys %ENV) {
+ print "$key --> $ENV{$key}<br>";
+}
+ </pre>
+
<h3><a name="stdin" id="stdin">STDIN and STDOUT</a></h3>
file called <code>first.pl</code>, and put it in your
<code>cgi-bin</code> directory.</p>
- <example>
- #!/usr/bin/perl<br />
- print "Content-type: text/html\n\n";<br />
- print "Hello, World.";
- </example>
+ <highlight language="perl">
+#!/usr/bin/perl
+print "Content-type: text/html\n\n";
+print "Hello, World.";
+ </highlight>
<p>Even if you are not familiar with Perl, you should be able
to see what is happening here. The first line tells Apache
<a href="../env.html">add your own environment variables</a>
to the basic ones provided by default.</p>
- <example>
- #!/usr/bin/perl<br />
- print "Content-type: text/html\n\n";<br />
- foreach $key (keys %ENV) {<br />
- <indent>
- print "$key --> $ENV{$key}<br>";<br />
- </indent>
- }
- </example>
+ <highlight language="perl">
+#!/usr/bin/perl
+print "Content-type: text/html\n\n";
+foreach $key (keys %ENV) {
+ print "$key --> $ENV{$key}<br>";
+}
+ </highlight>
</section>
<section id="stdin">
<?xml version="1.0"?>
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision : 1238738 -->
+<!-- English Revision: 1238738:1330137 (outdated) -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
<variants>
<variant>en</variant>
- <variant>fr</variant>
+ <variant outdated="yes">fr</variant>
</variants>
</metafile>
.lang-lua .lit { color: #088 } /* a literal */
.lang-lua .str { color: #009606 } /* string content */
.lang-lua .kwd { color: #00C; font-weight: bold } /* a keyword */
-.lang-lua .typ { color: #808 } /* a type name */
\ No newline at end of file
+.lang-lua .typ { color: #808 } /* a type name */
+
+
+
+
+/* Highlighting style for Perl source code */
+pre.lang-perl{
+ background-color: #f8f6ee;
+ color: #000;
+ padding: 0.5em;
+ margin: 1em 2em 1em 1em;
+ border: 1px dotted #666;
+}
+
+.lang-perl .com { color: #c34e00 } /* a comment */
+.lang-perl .lit { color: #088 } /* a literal */
+.lang-perl .str { color: #009606 } /* string content */
+.lang-perl .kwd { color: #00C; font-weight: bold } /* a keyword */
+.lang-perl .typ { color: #808 } /* a type name */
\ No newline at end of file