Am I correct in thinking this is a bug?
Yes, but unfortunately it's yours:
my $a = "123{12\n"; print "ACK digit!\n" if ($a =~ /[^:digit:]/); print "ACK \\D!\n" if ($a =~ /\D/);
The POSIX class names include the colons.
Update: I wrote a bad test case. Sorry for the noise.
In reply to Re: negating POSIX regexp classes doesn't work as expected
by chromatic
in thread negating POSIX regexp classes doesn't work as expected
by cazz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |