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;
|
---|
In Section
Seekers of Perl Wisdom
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;
|
---|