Keep It Simple, Stupid | |
PerlMonks |
Re: I need a perl script to make every instance of a repeated word uniqueby tilly (Archbishop) |
on Jan 28, 2011 at 23:57 UTC ( [id://884953]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|