in reply to checking bareword-filehandle
Wrap the print in an eval perhaps?
no warnings 'unopened';
Inside a small block should work though. See perllexwarn.
no warnings qw(unopened);
open HUBBA, "/hubba";
print HUBBA "hubba";
Guess I have to disable all warnings...
Seems you need to exclude the closed warning too.
It seems that unopened works if you never tried to open the file, and closed if the open failed, or it was closed. TIL.
Once (shame on you!)
Twice (shame on me!)
More often than I'd like to be
All the time
Just when answering stupid polls
Who you callin' a fool?
I refuse to vote in this ridiculous poll
Results (521 votes). Check out past polls.