Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 scrutinizing the Monastery: (5)
As of 2014-10-25 08:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (142 votes), past polls