Syntactic Confectionery Delight | |
PerlMonks |
Re^6: Spot the bugby Perl Mouse (Chaplain) |
on Dec 21, 2005 at 17:46 UTC ( [id://518375]=note: print w/replies, xml ) | Need Help?? |
The each iterator is not unlike the behaviour of a filehandle where you are reading line by line. Perhaps you find that iterator non-obvious as well, and you prefer to do
but I bet people will comment on that if you start promoting that style on Perlmonks. I find iterators bind to the data they act on far more natural than being binded to the location in the source code. It translates to an OO approach much more naturally.
Perl --((8:>*
In Section
Meditations
|
|