I highly doubt it :) your problem would appear to be elsewhere (perhaps scope related, as that is common with mod_perl)
use strict; use warnings; my $param = 'abe '.chr(155).chr(156).'lincoln'; warn $param; $param =~ s/[^a-zA-Z0-9\.\-\=\+\!\@\#\$\%\^\&\*\?\ \x80-\x97\xa0-\xa5] +//g; die $param; __END__ abe ¢£lincoln at regexS.pl line 4. abe lincoln at regexS.pl line 6.
excuse me , with 5.6.1, use utf8 helps, so it appears to be an encoding issue
Excuse me again. With 5.6.1 use utf8 does not help ;) There however appears to be no issue with the following example under 5.6.1 or 5.8.0
use strict; use warnings; #use utf8; my $param = 'abe '.chr(133).' in range lincoln '.chr(152).' out of ran +ge'; #my $param = "abe \x85 in range lincoln \x98 out of range"; print $param,$/; $param =~ s/[^a-zA-Z0-9\.\-\=\+\!\@\#\$\%\^\&\*\?\ \x80-\x97\xa0-\xa5] +/X/g; print $param,$/; __END__ E:\dev\LOOSE>perl regex.utf8.pl abe à in range lincoln ÿ out of range abe à in range lincoln X out of range E:\dev\LOOSE>perl -Mutf8 regex.utf8.pl abe à in range lincoln ÿ out of range abe X in range lincoln X out of range E:\dev\LOOSE>G:\perl\bin\perl regex.utf8.pl abe à in range lincoln ÿ out of range abe à in range lincoln X out of range E:\dev\LOOSE>G:\perl\bin\perl -Mutf8 regex.utf8.pl abe à in range lincoln ÿ out of range abe à in range lincoln X out of range E:\dev\LOOSE>
so my guess is still that it's some kind of encoding issue (if there really is an issue at all).

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.


In reply to Re: extended ASCII regex range by PodMaster
in thread extended ASCII regex range by theirpuppet

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.