Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Detecting write errors (disk full, bad media)

by dcmertens (Beadle)
on Jul 01, 2011 at 16:26 UTC ( #912374=note: print w/replies, xml ) Need Help??

in reply to Detecting write errors (disk full, bad media)

I think the other monks have answered your question. BUT if you wanted to have the print statement croak when it encounters errors, you can override the standard output to go to a tied filehandle. Then operations that Perl would have sent to stdout go to your filehandle code. You could then have your filehandle code print its results to the old stdout, but check the return value for you. For details, see
  • Comment on Re: Detecting write errors (disk full, bad media)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2016-10-25 23:31 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (330 votes). Check out past polls.