XP is just a number | |
PerlMonks |
Re: Re: Control Characters (\xNN) in HTMLby garliqua (Novice) |
on Oct 21, 2001 at 02:51 UTC ( [id://120326]=note: print w/replies, xml ) | Need Help?? |
Thanks to everyone who replied. I appreciate it. I ended up going with blackmateria's solution: s/([\x80-\xFF])/'&#'.ord($1).';'/eg Since it kept the scope of the substitutions neatly to just the things I wanted to replace (as opposed to tommyw's followup using [:print:], whichas I understand it from page 80 of the owl book, at leastwould have performed replacements on tabs and other non-space-character whitespace as well). Thanks again to all y'all!
In Section
Seekers of Perl Wisdom
|
|