in reply to Re: Is there a way around grep?
in thread Is there a way around grep?
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Is there a way around grep?
by AnomalousMonk (Archbishop) on Oct 11, 2011 at 22:42 UTC | |
Re^3: Is there a way around grep?
by ikegami (Patriarch) on Oct 15, 2011 at 08:26 UTC |
In Section
Seekers of Perl Wisdom