Debian Codegraph @

test/html/chdir.htm

raw
1 <html>
2 <head>
3 <title>Some tests for Embperl</title>
4 </head>
5
6
7 <body>
8
9 [- use Cwd ;
10 $r = shift -]
11
12 Script CWD: [+ $script = $r -> component -> cwd +][#getcwd #] <BR>
13 Embperl CWD: [+ $ep = $HTML::Embperl::cwd +] <BR>
14 $0: [+ $abs = $0 +]
15
16 [- $abs = $ep . '/' . $0 if (!($0 =~ /^\//)) ; -]
17 $0 (absolut): [+ $abs +]
18
19 Equal: [+ $script eq $ep?'Yes':'No' +]<BR>
20 Diff CWD: [+ do { $script =~ /$ep/ ; ">$'<" } +]<BR>
21 Diff $0: [+ do { $abs =~ /$ep/ ; ">$'<" } +]<BR>
22 Test/html: [+ $script =~ /test(?:\/|\\)html$/?'yes':'no' +]
23
24 [- @ks = sort keys %fdat -]
25
26 <table>
27 <tr>
28 <td>[+ $ks[$row] +]</td><td>[+ $fdat{$ks[$row] || ''} +]</td>
29 </tr>
30 </table>
31
32
33
34 </body>
35 </html>