more useful options | |
PerlMonks |
Re: Error: Can't use global $^W in "my"by dsb (Chaplain) |
on Jul 08, 2004 at 17:17 UTC ( [id://372863]=note: print w/replies, xml ) | Need Help?? |
You cannot use my to declare any of the magical built-in variables Perl has.
If you want to modify the value of a built in, you must use local to do it, and then the modification will be local to the enclosing code block. Update: Time to revisit local :)
dsb This is my cool %SIG
In Section
Seekers of Perl Wisdom
|
|