lev has asked for the wisdom of the Perl Monks concerning the following question:
A character found at the end of some of the one-liners as "^M" must also be removed. It appears only in the unix(html) file in blue, contrasting the adjacent white text. I have no idea of it's origin or meaning. Using the chop function (or $string =~ s/.$//g;) works where this "^M" tail is present, but it's indiscriminate and $string =~ s/\\^M$//g; does nothing (with or without escaping "^"). What's the nature of this blue "^M" character and how do I select it out from the string?
My thanks for any answers.
|
|---|