Skip Menu |

This queue is for tickets about the Parse-Method-Signatures CPAN distribution.

Report information
The Basics
Id: 46302
Status: resolved
Priority: 0/
Queue: Parse-Method-Signatures

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

Bug Information
Severity: Unimportant
Broken in: 1.003006
Fixed in: 1.003009



Subject: Uninitialized warning parsing certain signatures including regexps
When a signature contains a regular expression without an operator, the Token::Regexp object contains an undef field in the "operator" member. This throws an uninitialized warning from the _replace_regexps method on P:M:S at: my ($word, $rest) = $str =~ /^(@{[$node->{operator}]})(.*)$/s; Since $node->{operator} is undef. To reproduce: perl -MParse::Method::Signatures -e 'Parse::Method::Signatures->param(q#Str $foo where { $_ =~ /foo/ }#);' Changing /foo/ to m/foo/ does not demonstrate the issue, since the value of $node->{operator} is "m"