Debian Codegraph @

test/html/chdir/chdir2src.htm

raw
1 <html>
2 <head>
3 <title>Some tests for Embperl</title>
4 </head>
5
6
7 <body>
8
9 Compile:
10 [!
11 use Cwd ;
12 use lib qw{.} ;
13
14 BEGIN { $begin = getcwd }
15 $compile = getcwd ;
16
17 !]
18
19 [-
20 use chdir2src ;
21 $test = chdir2src::test () ;
22 -]
23
24 Run:
25 Begin CWD: [+ $begin +] <BR>
26 Compile CWD: [+ $compile +] <BR>
27 Script CWD: [+ $script = getcwd +] <BR>
28 Embperl CWD: [+ $ep = $FindBin::Bin || $ENV{EMBPERL_SRC} +] <BR>
29 $0: [+ $abs = $0 +]
30 Use Test: [+ $test +]
31
32 [- $abs = $ep . '/' . $0 if (!($0 =~ /^\//)) ; -]
33 $0 (absolut): [+ $abs +]
34
35 Equal: [+ $script eq $ep?'Yes':'No' +]<BR>
36 Compile Equal: [+ $script eq $compile?'yes':'no' +]
37 Diff CWD: [+ do { $script =~ /$ep/ ; ">$'<" } +]<BR>
38 Diff $0: [+ do { $abs =~ /$ep/ ; ">$'<" } +]<BR>
39 Test/html: [+ $script =~ /test(?:\/|\\)html(?:\/|\\)chdir$/?'yes':'no' +]
40
41 [- @ks = sort keys %fdat -]
42
43 <table>
44 <tr>
45 <td>[+ $ks[$row] +]</td><td>[+ $fdat{$ks[$row] || ''} +]</td>
46 </tr>
47 </table>
48
49
50
51 </body>
52 </html>