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?