Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: checking bareword-filehandle

by rovf (Priest)
on Aug 06, 2012 at 14:59 UTC ( #985745=note: print w/ replies, xml ) Need Help??

in reply to checking bareword-filehandle

How about changing the open to

use File::Spec::Functions qw(devnull); ... if(!open(FH, ">...")) { warn " ... $!..."; open(FH,'>',devnull) or die "$!"; }
If you can't even write to the bitbucket, something is really messed up in your system, so I think it makes sense to die in that case.

Ronald Fischer <>

Comment on Re: checking bareword-filehandle
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://985745]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2016-02-14 17:25 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (470 votes), past polls