Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 imbibing at the Monastery: (6)
As of 2014-12-18 23:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (68 votes), past polls