Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Can't understand function returning undefs

by rg0now (Chaplain)
on Sep 24, 2010 at 20:43 UTC ( [id://861880]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub recv_data{
        if(read_some_data){
    ...
            return;
        }
    }
    
  2. or download this
    while(($x, $y) = recv_data){
        ...
    }
    
  3. or download this
    while(1){
        my($x, $y) = recv_data;
        last unless defined $x;
        ...
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-20 09:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found