Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: mysterious error of read function in solaris

by Anonymous Monk
on Jan 19, 2012 at 13:55 UTC ( #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;


Comment on Re: mysterious error of read function in solaris

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2014-10-25 04:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (141 votes), past polls