note
broquaint
<blockquote><i>
Is there an easy way to call Perl scripts from within a Perl script and keep the environment variables?
</i></blockquote>
I'm not sure how well this will work on your Window box but you could <tt>[perlfunc:fork|fork()]</tt> then <tt>[perlfunc:exec|exec()]</tt> your external scripts e.g
<code>
@ENV{qw/ one two three /} = qw( foo bar baz );
exec "perl somescript.pl" if fork();
</code>
Or you could just <tt>[perlfunc:do|do()]</tt> them in a separate package e.g
<code>
{
package RandomPkgName;
do "somescript.pl";
}
</code>
The package declaration will avoid cluttering up your current namespace.
<br/>
HTH
<p/>
<tt>_________<br><u>broquaint</u></tt>
217478
217478