Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: mysterious error of read function in solaris

by JavaFan (Canon)
on Jan 19, 2012 at 15:46 UTC ( #948794=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $r;
    while ($r = read ...) {
        ... do stuff here ...
    }
    die "read failed: $!" unless defined $r;
    
  2. or download this
    while (read(...) // die "read failed: $!") {
        ... do stuff here ...
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://948794]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2016-12-03 05:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (52 votes). Check out past polls.