more useful options | |
PerlMonks |
Re: [stonehenge] deep copy what's the function getpwent()by Anonymous Monk |
on Nov 29, 2013 at 07:50 UTC ( [id://1064907]=note: print w/replies, xml ) | Need Help?? |
They call those things iterators. An iterator is a function that returns items from a list until it runs out of them. When the list is exhausted, it returns a false value.
In Perl, they're usually written using a closure:
In Section
Seekers of Perl Wisdom
|
|