You're right, and I don't have an old Mac to verify this on (OSX uses the Unix line ending convertion afaik). perlport shows the various line termination combinations in an ASCII table.
As the OP referred to ^M not CR or ASCII 13, I could infer that the platform was not an old mac.
--
Oh Lord, won’t you burn me a Knoppix CD ?
My friends all rate Windows, I must disagree.
Your powers of persuasion will set them all free,
So oh Lord, won’t you burn me a Knoppix CD ?
(Missquoting Janis Joplin)
In reply to Re^3: How to delete ^M character using regex
by rinceWind
in thread How to delete ^M character using regex
by lovekumar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |