Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: Can't understand function returning undefs

by rg0now (Chaplain)
on Sep 24, 2010 at 21:32 UTC ( #861892=note: print w/replies, xml ) Need Help??


in reply to Re^3: Can't understand function returning undefs
in thread Can't understand function returning undefs

The function in your example returns an empty list, not undef, in list context when there is no more data available.
Thanks for this update. I never actually thought these two cases are different.

And I thought I knew Perl...

  • Comment on Re^4: Can't understand function returning undefs

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2016-12-11 11:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (169 votes). Check out past polls.