in reply to Variable scope in packages.
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.
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.
$_.=($=+(6<<1));print(chr(my$a=$_));$^H=$_+$_;$_=$^H; print chr($_-39); # Easy but its ok.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Variable scope in packages.
by runrig (Abbot) on Jun 29, 2001 at 23:59 UTC |
In Section
Seekers of Perl Wisdom