in reply to Re: running programs from PERL
in thread running programs from PERL

$ENV{PWD} is not portable
use File::chdir; $CWD = "/foo/bar"; # now in /foo/bar { local $CWD = "/moo/baz"; # now in /moo/baz ... } # still in /foo/bar!