Closing ARGV before it gets opened again would be the non hacky thing way to do it since it's shown in the doc, although it's a bit longer.
Edit: choroba pointed out it was shown in the doc for eof not open
In reply to Re^3: One to one file output idiom
by Eily
in thread One to one file output idiom
by Eily
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |