Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: I need a perl script to make every instance of a repeated word unique

by tilly (Archbishop)
on Jan 28, 2011 at 23:57 UTC ( #884953=note: print w/ replies, xml ) Need Help??


in reply to I need a perl script to make every instance of a repeated word unique

The substitution that you will need is s/\bundefined\b/"undefined" . ++$count/eg.

perlop has instructions for how to use such substitutions (look for "s/PATTERN/REPLACEMENT"), and perlrun documents the -p and -e flags which are likely to prove very useful for you.


Comment on Re: I need a perl script to make every instance of a repeated word unique
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://884953]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2015-07-08 07:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (96 votes), past polls