Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by aanriot (Sexton)
on Jun 30, 2011 at 15:17 UTC ( [id://912201]=note: print w/replies, xml ) Need Help??


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

And you can easily check this if you close the filehandle before printing "CCC".

print $fh "CCC\n" or die "The file has vanished.";

will returns something like "print() on closed filehandle $fh at ... line ... The file has vanished. at ... line ..."

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-16 19:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found