Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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 <ynnor@mm.st>


Comment on Re: checking bareword-filehandle
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2014-08-28 00:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (253 votes), past polls