in reply to Re^2: lexical vs. local file handles
in thread lexical vs. local file handles
It's probably possible to make localized bareword filehandles work, if you take a whole lot of care to avoid all the issues. But then again, you could be spending all that care on avoiding print $fh, "", couldn't you? (You could probably even write a Perl::Critic policy to avoid it - Perl::Critic::Policy::InputOutput::ProhibitBarewordFileHandles already exists.) I guess I should have worded my point above as a question:
Other than catching the print FH, "" issue, what advantages to using bareword filehandles do you see over lexical filehandles?
Edit: Added link to module.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: lexical vs. local file handles
by jo37 (Curate) on Apr 18, 2020 at 19:52 UTC | |
by chromatic (Archbishop) on Apr 18, 2020 at 20:52 UTC | |
by haukex (Archbishop) on Apr 18, 2020 at 19:54 UTC | |
by jo37 (Curate) on Apr 18, 2020 at 20:07 UTC | |
by haukex (Archbishop) on Apr 18, 2020 at 20:15 UTC |