Re: Grepping with Perl: How to stop after first match?
by
sh1tn
on
Dec 05, 2007 at 23:48 UTC
http://www.perlmonks.org?node_id=655259
in reply to
Grepping with Perl: How to stop after first match?
Use
last
inside your loop.
Comment on
Re: Grepping with Perl: How to stop after first match?
In Section
Seekers of Perl Wisdom