Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: How to ignore lines that match certain string after it is matched for the first time within a same file

by ikegami (Pope)
on Sep 19, 2012 at 23:09 UTC ( #994561=note: print w/replies, xml ) Need Help??


in reply to How to ignore lines that match certain string after it is matched for the first time within a same file

my %seen; s/(amazing\S+)/ $seen{$1}++ ? ...new... : $1 /eg;
  • Comment on Re: How to ignore lines that match certain string after it is matched for the first time within a same file
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://994561]
help
Chatterbox?
and all is quiet...

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













    Results (89 votes). Check out past polls.