in reply to Calling Perl from Perl
Is there an easy way to call Perl scripts from within a Perl script and keep the environment variables?I'm not sure how well this will work on your Window box but you could fork() then exec() your external scripts e.g
Or you could just do() them in a separate package e.g@ENV{qw/ one two three /} = qw( foo bar baz ); exec "perl somescript.pl" if fork();
The package declaration will avoid cluttering up your current namespace.{ package RandomPkgName; do "somescript.pl"; }
HTH
_________
broquaint
|
---|
In Section
Seekers of Perl Wisdom