|
|
| "be consistent" | |
| PerlMonks |
Re^3: case insensitive replace, but maintains capitalizationby samarzone (Pilgrim) |
| on Dec 24, 2010 at 07:22 UTC ( #878984=note: print w/ replies, xml ) | Need Help?? |
|
This script beautifully handles the first letter of the word. You'll still have to define the (complex) rules for this in case you need more than just first letter. For example if you want "animal" to be replaced by "pet" then what should "ANiMal" be replaced with?
--
Regards
- Samar
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||