in reply to Re: What would you do?
in thread What would you do?
It's when you start doing silly and dangerous things like:while (<FH>) { # localized $_ for (split ' ') { # localized $_ } # previous $_ }
that problems occur. It is a bad idea to assign to a global $_ -- where "global" means "not localized".sub foo { $_ = shift; # TSK! local $_ tr/aeiou/AEIOU/; return $_; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Does while localize $_?
by tenya (Beadle) on Mar 18, 2001 at 22:40 UTC | |
by danger (Priest) on Mar 19, 2001 at 00:07 UTC | |
by merlyn (Sage) on Mar 19, 2001 at 00:07 UTC | |
by tenya (Beadle) on May 25, 2001 at 07:46 UTC |