http://www.perlmonks.org?node_id=861892


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