Syntactic Confectionery Delight | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Anonymous Monk,
No, that isn't a better approach. If your iterator is designed to return a list each iteration and an empty list is valid then you will prematurely terminate. I stand by my statements though I will concede that it would be fair to say that an empty list is usually safe. Cheers - L~R In reply to Re^2: How To: Make An Iterator
by Limbic~Region
|
|