Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Re: changing package variables?by LameNerd (Hermit) |
on Mar 05, 2003 at 00:06 UTC ( [id://240491]=note: print w/replies, xml ) | Need Help?? |
Thanks! I was under the mistaken impression that doing use MYPACKAGE qw / sub1 /; use vars qw / $var1 /;Would give me instance of $MYPACKAGE::var1 in my main package scope. So what's the diffence between use vars qw / $var1 /;and my $var1?????? What was I thinking?
In Section
Seekers of Perl Wisdom
|
|