Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: substitution issue

by vitoco (Friar)
on Nov 02, 2009 at 12:50 UTC ( #804449=note: print w/replies, xml ) Need Help??


in reply to substitution issue

Are ^M two chars (ie. ^ and M) or just a visual representation of \r byte (ie. CR)? From the first part of the substitution /\^[A-Z]/ I see you think that are two bytes, but if it's always a M, why are you seeking for the whole alphabet?

BTW, your code is replacing ^M after </Content> because your flag is not reset by this closing tag.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://804449]
help
Chatterbox?
[1nickt]: Discipulus Yes, I think it is maybe easier to be a good monk in "real" life when you are young and idealistic or old and weary ... nost so much in middle age.
[1nickt]: 😲 ... or did you mean the Middle Ages, when monastic life was more, umm, "earthy" ?!

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2017-12-13 14:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (368 votes). Check out past polls.

    Notices?