Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: File::Find and $_ in the wanted sub

by ikegami (Patriarch)
on Jun 06, 2010 at 19:15 UTC ( [id://843352]=note: print w/replies, xml ) Need Help??


in reply to Re: File::Find and $_ in the wanted sub
in thread File::Find and $_ in the wanted sub

I used for since for and local *_ are more thorough than local $_. One problem case:
for ($tied) { ... local $_ = 'i am a nice parameter'; testy(); ... }

No problem:

for ($tied) { ... local *_; $_ = 'i am a nice parameter'; testy(); ... }

No problem:

for ($tied) { ... testy() for 'i am a nice parameter'; ... }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2024-03-28 22:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found