in reply to Unicode and Forms

If I understand the situation correctly (not sure that I do), utf8 data is coming in on a CGI parameter string (or something like that), but at the point where the utf8 string is assigned to a scalar in the script, that scalar is not being flagged as holding utf8 data. In this case, the safer, more stable way (relative to what liz suggested above) to make perl use it as utf8 is to "decode" it:
my $utf8_param = decode( 'utf8', $input_param );
and maybe add the third arg to the decode call, so that it does something useful in case the input data turns out not to be valid utf8. See the section of the Encode man page headed "Handling Malformed Data": you can pass a "CHECK" parameter that says "die on error", and wrap the decode call in an eval block to see whether it worked, before moving on to doing regex matches involving unicode character classes.

(If you don't check the result of the decode call, parts that it couldn't decode will show up as "\x{FFFD}", which would be "safe", but not very informative in terms of diagnostics.)