Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by Anonymous Monk
on Mar 21, 2013 at 23:09 UTC ( [id://1024838]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    reset
    
  2. or download this
    my $state = 0;
    while(<>) {
    ...
            reset;
       }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-19 06:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found