Some tests for Embperl

Compile: [! use Cwd ; use lib qw{.} ; BEGIN { $begin = getcwd } $compile = getcwd ; !] [- use chdir2src ; $test = chdir2src::test () ; -] Run: Begin CWD: [+ $begin +]
Compile CWD: [+ $compile +]
Script CWD: [+ $script = getcwd +]
Embperl CWD: [+ $ep = $FindBin::Bin || $ENV{EMBPERL_SRC} +]
$0: [+ $abs = $0 +] Use Test: [+ $test +] [- $abs = $ep . '/' . $0 if (!($0 =~ /^\//)) ; -] $0 (absolut): [+ $abs +] Equal: [+ $script eq $ep?'Yes':'No' +]
Compile Equal: [+ $script eq $compile?'yes':'no' +] Diff CWD: [+ do { $script =~ /$ep/ ; ">$'<" } +]
Diff $0: [+ do { $abs =~ /$ep/ ; ">$'<" } +]
Test/html: [+ $script =~ /test(?:\/|\\)html(?:\/|\\)chdir$/?'yes':'no' +] [- @ks = sort keys %fdat -]

[+ $ks[$row] +] | [+ $fdat{$ks[$row] || ''} +]