Skip Menu |

This queue is for tickets about the Regexp-Parser CPAN distribution.

Report information
The Basics
Id: 59854
Status: resolved
Priority: 0/
Queue: Regexp-Parser

People
Owner: Nobody in particular
Requestors: ANDK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.20
Fixed in: (no value)



Subject: Chokes on character class ending with a dash
Character classes in perl regexps ending with a dash are documented to take the dash literally. Not so in Regexp::Parser: % perl -le 'use Regexp::Parser; my $r = qr/[ _-]/; warn "parsed regexp: $r"; my $iter = Regexp::Parser->new( $r )->walker; ' parsed regexp: (?-xism:[ _-]) at -e line 3. Unmatched [; marked by <-- HERE in m/(?-xism:[ _-]) <-- HERE / at -e line 4