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.
In reply to Re^3: lexical vs. local file handles
by haukex
in thread lexical vs. local file handles
by jo37
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |