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 reply to Re^4: Can't understand function returning undefs
by rg0now
in thread Can't understand function returning undefs
by rg0now
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |