The stupid question is the question not asked | |
PerlMonks |
Re^4: Can't understand function returning undefsby rg0now (Chaplain) |
on Sep 24, 2010 at 21:32 UTC ( [id://861892]=note: print w/replies, xml ) | Need Help?? |
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...
In Section
Seekers of Perl Wisdom
|
|