Debian Codegraph @

eg/x/while.htm

raw
1
2 <html>
3 <head>
4 <title>While Metacommand in Embperl</title>
5 </head>
6 <body background="../images/jazzbkgd.gif">
7
8 This is a example of using the while metacommand in embperl to show the environment<P>
9
10 [- $i = 0; @k = keys %ENV -]
11 [$ while ($i &lt; $#k) $]
12 [+ $k[$i] +] = [+ $ENV{$k[$i]} +]<BR>
13 [- $i++ -]
14 [$ endwhile $]
15
16 <P>
17 This is a example of using the while metacommand in embperl to show the loaded modules<P>
18
19 [- $i = 0; @k = keys %INC -]
20 [$ while ($i &lt; $#k) $]
21 [+ $k[$i] +] = [+ $INC{$k[$i]} +]<BR>
22 [- $i++ -]
23 [$ endwhile $]
24
25 </body>
26 </html>