Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: RFC: Regexp::AllMatchesby lodin (Hermit) |
on Aug 06, 2007 at 17:30 UTC ( [id://630862]=note: print w/replies, xml ) | Need Help?? |
I'll definately consider ::Exhaustive. Thanks! does ->next() return a list? if yes, why? There are different opinions and tastes regarding this. I prefer to design iterators so that the next method returns undef in scalar context and the empty list in list context when it's exhausted. A successful match may be "" or "0", and that would force me to write to not leave the loop prematurely. lodin
In Section
Meditations
|
|