http://www.perlmonks.org?node_id=215189


in reply to Re: Re: Perl Programming guidlines/rules
in thread Perl Programming guidelines/rules

Wow, that really localizes $_ ? To me, it looks more like a straight assignment to $_. I would've expected something like:

sub foo { local $_ = shift; /foo/; }

blyman
:wq

Replies are listed 'Best First'.
Re^4: Perl Programming guidlines/rules
by Aristotle (Chancellor) on Nov 27, 2002 at 15:38 UTC
    No, it doesn't localize, and I'm fairly certain that BUU was pointing out that failing to do so is dangerous.

    Makeshifts last the longest.