Indeed haukex, I agree that validation for a filehandle would be good if it was a trivial thing to do. I couldn't have told you whether it was or wasn't off the top of my head, so thanks for the link.
The possible re-use of the scalar $first_fh did occur to me, but that's why I initially figured a warning might have been appropriate since someone could explicitly ignore that warning if they decided to re-use the variable name. I sort of leaned toward the, "well wouldn't that be kind of sloppy to re-use it anyway?" argument when it occurred to me, but I wouldn't be surprised if there were cases where it made good sense to do so.
Again, I did just really want the "filehandle used after closing" warning, though I can easily accept the answer that it's impractical.
In reply to Re^2: Propose addition to use warnings?
by perldigious
in thread Propose addition to use warnings?
by perldigious
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |