Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by NetWallah (Canon)
on Jun 09, 2006 at 04:39 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://554424]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (7)
As of 2024-04-23 13:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found