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"; }
_________
broquaint
In reply to Re: Calling Perl from Perl
by broquaint
in thread Calling Perl from Perl
by icius
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |