in reply to Regex (find an * after a digit)

Googling for the error message reveals this link, which states:

If you have a newer Perl (5.8 definitely, maybe 5.6 too) and are using a UTF-8 locale, you will get many warnings from perl about "Malformed UTF-8 character" warnings. This is because the HTML output currently uses latin1, which doesn't validate as UTF-8 (unless I am mistaken, this would occur for any input that didn't validate against the locale's encoding even without a UTF-8 locale).

This problem can be worked around by telling perl to treat the input data as byte data rather than character data by adding the "use bytes;" pragma.

"When you are faced with a dilemma, might as well make dilemmanade. "

Replies are listed 'Best First'.
Re: Re: Regex (find an * after a digit)
by Anonymous Monk on Feb 06, 2004 at 03:53 UTC
    I *WAS* using "=" instead of "=~" like an idiot. Didn't help much though.

    "use bytes" solved the problem. Strange thing is, this is all on a terminal (no HTML) so not sure why it's doing this. The ONLY thing I can think of different is that the machine w/ the dodgy output has apache running on it, but I'm running this script off to the side.

    Thanks