diff options
Diffstat (limited to 'x2p')
-rw-r--r-- | x2p/find2perl.PL | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/x2p/find2perl.PL b/x2p/find2perl.PL index 679ca3c05c..67022eef11 100644 --- a/x2p/find2perl.PL +++ b/x2p/find2perl.PL @@ -290,6 +290,14 @@ $declaresubs END +if (exists $init{doexec}) { + print <<'END'; +use Cwd (); +my $cwd = Cwd::cwd(); + +END +} + if (exists $init{ls}) { print <<'END'; my @rwx = qw(--- --x -w- -wx r-- r-x rw- rwx); @@ -358,9 +366,6 @@ END if (exists $init{doexec}) { print <<'END'; -use Cwd (); -my $cwd = Cwd::cwd(); - sub doexec ($@) { my $ok = shift; my @command = @_; # copy so we don't try to s/// aliases to constants |