Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: Re: Perl Programming guidlines/rules

by belden (Friar)
on Nov 22, 2002 at 17:13 UTC ( #215189=note: print w/ replies, xml ) Need Help??


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


Comment on Re: Re: Re: Perl Programming guidlines/rules
Download Code
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://215189]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2015-08-05 12:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (81 votes), past polls