The stupid question is the question not asked | |
PerlMonks |
Re: Variable scope in packages.by damian1301 (Curate) |
on Jun 29, 2001 at 23:50 UTC ( [id://92788]=note: print w/replies, xml ) | Need Help?? |
When you require a script(*.pl), it brings it's variables, subs, and all into your namespace so you can simply access it as %crap. Voila!
NOTE: That if you require a package it will not be the same. It will not be automatically included in your namespace and you would have to make each call explicitly -- Credit goes to Petruchio on the note.
In Section
Seekers of Perl Wisdom
|
|