P is for Practical | |
PerlMonks |
Re: Grepping with Perl: How to stop after first match?by sh1tn (Priest) |
on Dec 05, 2007 at 23:48 UTC ( [id://655259]=note: print w/replies, xml ) | Need Help?? |
Use last inside your loop.
In Section
Seekers of Perl Wisdom
|
|