Skip Menu |

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

Report information
The Basics
Id: 33002
Status: resolved
Priority: 0/
Queue: Regexp-Optimizer

People
Owner: Nobody in particular
Requestors: sidney [...] sidney.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.15
Fixed in: (no value)



Subject: list2re with modifier x set produces bad code to set modifier
Try the example for the x modifer from the POD use Regexp::List; my $l = Regexp::List->new; @list = qw/Perl perl BASIC basic/; print $l->set(modifiers => 'x')->list2re(@list); Output is (?=x:(?=[BPbp])(?:[Pp]erl | BASIC | basic)) Which doesn't work. It should be (?x:(?=[BPbp])(?:[Pp]erl | BASIC | basic)) Tested under perl 5.8.8 on Mac OS 10.5.1 (Intel)
As of version 0.20 of Regexp::Optimizer now uses Regexp::Assemble instead of Regexp::List to optimize alteration. Dan