Re: Illegal hexadecimal digit '}'?!
In comp.lang.perl.moderated,
schwern@pobox.com (Michael G Schwern) wrote on 27.11.00 in <3A2237D9.B98A2E1C@pobox.com>:
> Kai Henningsen wrote:
> > Why does it suddenly complain about this when it's fine on all those other
> > lines?
> >
> > And why 4 errors for a line that has only two "}"?
>
> I worked it down to a cannonical problem:
>
> use utf8;
> use warnings;
>
> my $token;
> $token =~ /\x{0D}/;
>
> $token =~ /[\x{0D}]/ works fine. So there seems to be a problem using
> \x{} in a regex outside of a character set. A quick search of the p5p
> archive reveals a bug report and a patch:
>
> http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2000-05/msg00187.html
>
> Looks like it was an off-by-one error.
Can we please have that fixed in Debian's 5.6?
MfG Kai
Reply to: