Title: RE: [Perl-unix-users] Setting env variables?

easy enough to test...

#script1.pl
$ENV{Ice_Cream}{Flavors}{Favorite}="Chocolate";

#script2.pl
require "script1.pl";
print "$ENV{Ice_Cream}{Flavors}{Favorite}\n";



> -----Original Message-----
> From: Craig Sharp [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 05, 2002 13:28
> To: [EMAIL PROTECTED]
> Subject: [Perl-unix-users] Setting env variables?
>
>
> Hi all,
>
> I have a huge pile of environment variables to set.  If I set
> them in a separate perl script and use the require function
> to reference that script, will the variables be available to
> the calling perl script?
>
> Thanks,
>
> Craig
>
> _______________________________________________
> Perl-Unix-Users mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>

Reply via email to