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

Re^2: upto match please, my one-lina!!

by NetWallah (Abbot)
on Jun 09, 2006 at 04:39 UTC ( #554424=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl  -ne "m/foo/ and die @@ ; shift(@@) if push(@@,$_)>5"  myfile.txt
    
  2. or download this
    perl -Mstrict -ne "m/addr/ and eval {print @@; exit}; shift(@@) if pus
    +h(@@,$_)>5" myfile.txt
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2016-07-29 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (264 votes). Check out past polls.