Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Grepping with Perl: How to stop after first match?

Use last inside your loop.


Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://655259]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-03-29 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found