in reply to
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.
By rote learning.
Via Genetic memory.
It's provided by my firmware.
I just remember them.
Thirty days hath September
My computer gets it right, usually.
I just ask someone else.
Someone punches me on the first of the month.
Results (113 votes),