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.