![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Re: Control charactersby JavaFan (Canon) |
on Jun 05, 2009 at 12:28 UTC ( #768777=note: print w/replies, xml ) | Need Help?? |
Control characters are three stroke tokens, \cA, \cB, etc. You cannot put parts of the tokens and put them into a character class. Use:
or an equivalent tr construct. Note also that your use of ^ means you are only going to replace matches at the beginning of the string - at most one character in your example. Which from your description doesn't seem to be want you want.
In Section
Seekers of Perl Wisdom
|
|