Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2016-12-03 01:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (51 votes). Check out past polls.