Question: How can I share variables between Perl scripts...?
Environment: Windows NT
Supporting Information:
In the Unix world I've been able to accomplish this by using the
'our' variable declaration and then adding a 'require' line to other
scripts along with a 'use vars' line. But in the Win32 world 'our'
doesn't seem to be available and the 'my' variable declaration isn't
doing the trick.
I can't even get one file to see the variables in another...
File Name: env.pl
my $shared_var1="Hello";
my $shared_var2="There";
File Name: script1.pl
use strict
require "env.pl";
use vars qw($shared_var1 $shared_var2);
print "\$shared_var1='$shared_var1'\n";
print "\$shared_var2='$shared_var2'\n";
Any bones you could through my way would be greatly appreciated...
Regards,
Dave DeLine
8140 Ward Parkway
Cube 4E003
Mailstop: MOKCMP0405
913.624.6810
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs