Perl: the Markov chain saw | |
PerlMonks |
Re^2: Is there a way around grep?by suaveant (Parson) |
on Oct 11, 2011 at 15:53 UTC ( [id://930850]=note: print w/replies, xml ) | Need Help?? |
Of course, if only looking for a match a good addition would be a last to break the loop as soon as a match is found. Or use List::Util::first
In Section
Seekers of Perl Wisdom
|
|