Skip Menu |

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

Report information
The Basics
Id: 2913
Status: rejected
Priority: 0/
Queue: Regexp-Common

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

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



Subject: Previous patch breaks some create() calls
My patch attached to "$self->{args} needs work" (bug 2865) introduced a bug such that some calls to create() didn't properly pass the third argument, $name. The attached patch fixes that.
*** lib/Regexp/Common.pm Sun Jun 29 16:06:53 2003 --- lib/Regexp/Common-patched.pm Tue Jul 8 04:11:57 2003 *************** *** 238,244 **** use overload q{""} => sub { my ($self) = @_; ! my $pat = $self->{create}->($self, $self->{flags}, $self->{args}); if (exists $self->{flags}{-keep}) { $pat =~ s/\Q(?k:/(/g; } --- 238,244 ---- use overload q{""} => sub { my ($self) = @_; ! my $pat = $self->{create}->($self, $self->{flags}, $self->{name}); if (exists $self->{flags}{-keep}) { $pat =~ s/\Q(?k:/(/g; }