Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^2: Idiomatic Perl?

by Anonymous Monk
on Mar 20, 2018 at 19:08 UTC ( #1211364=note: print w/replies, xml ) Need Help??

in reply to Re: Idiomatic Perl?
in thread Idiomatic Perl?

If you're gonna use globals you're supposed to localize

Replies are listed 'Best First'.
Re^3: Idiomatic Perl?
by AppleFritter (Vicar) on Mar 23, 2018 at 09:16 UTC
    Can you properly localize $_? I vaguely recall Rafael Garcia-Suarez mentioning something about "having 'local $_' not working as intended", but never investigated what that means.
Re^3: Idiomatic Perl?
by mxb (Pilgrim) on Mar 20, 2018 at 19:51 UTC

    Huh, I didnít know that! Iíve only ever assigned to $_ in throw away scripts and one liners. Thanks for that, I learned something new.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2023-06-10 00:38 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (36 votes). Check out past polls.