Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Grepping with Perl: How to stop after first match?

by sh1tn (Priest)
on Dec 05, 2007 at 23:48 UTC ( #655259=note: print w/replies, xml ) Need Help??


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?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://655259]
help
Chatterbox?
[holli]: good morning you beautiful people. happy last work week of 2017

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2017-12-18 04:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (467 votes). Check out past polls.

    Notices?