Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: •Re: Seeking an idiom for localizing $/

by Anomynous Monk (Scribe)
on May 02, 2004 at 23:46 UTC ( [id://349878]=note: print w/replies, xml ) Need Help??


in reply to Re: •Re: Seeking an idiom for localizing $/
in thread Seeking an idiom for localizing $/

Doesn't look horrible at all; it's a combination of the standard idiom for restricting something to the smallest possible scope (do { local whatever; expression } or do { no strict "refs"; $$symref }) combined with the stuff that a plain while (<FILE>) does implicitly for you (while (defined($_ = <FILE>)).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-23 23:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found