Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: mysterious error of read function in solaris

by Anonymous Monk
on Jan 19, 2012 at 13:55 UTC ( [id://948779]=note: print w/replies, xml ) Need Help??


in reply to mysterious error of read function in solaris

Only check $! right after a system call

open ... or die $!;
close ... or die $!;
print ... or die $!;

my $read = read ...;
die $! unless defined $read;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-03-19 08:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found