Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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 avoiding work at the Monastery: (3)
As of 2015-11-27 02:48 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (714 votes), past polls