There's more than one way to do things | |
PerlMonks |
Re^6: Global variables in Perlby taioba (Acolyte) |
on Jun 04, 2010 at 21:46 UTC ( [id://843216]=note: print w/replies, xml ) | Need Help?? |
OK, here you go. A few adjustments: ConfigThisJunk.pm is actually ExportScalar.pm and the script name is ImportTest.pl. The package is in the folder 'D:/Marcos/Perl/MSB/SS' in my Windows machine. Hence, your line got modified to: perl -wle"use lib 'D:/Marcos/Perl/MSB'; use SS::ExportScalar; print $INC{'SS/ExportScalar.pm'};"and that resulted in D:/Marcos/Perl/MSB/SS/ExportScalar.pmAnd then the results of the type statements:
Now I execute it:
Now, I change the strict statement in ImportTest.pl:
X:^P
In Section
Seekers of Perl Wisdom
|
|