Skip Menu |

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

Report information
The Basics
Id: 12693
Status: resolved
Priority: 0/
Queue: Regexp-Common

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

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



Subject: Uninitialized value warning in delimited.pm
The following code: if ((defined $def) && ($def =~ /$RE{delimited}{-delim=>'"'}{-esc}{-keep}/)) { $def = $3; } generates the following warnings: Use of uninitialized value in length at C:/Perl/site/lib/Regexp/Common/delimited.pm line 17. Use of uninitialized value in length at C:/Perl/site/lib/Regexp/Common/delimited.pm line 24. In the examples, $def = "\"error\"" Looking at the code, shouldn't $escs be initialised to "" so this warning does not occur?
From: rrwo [...] cpan.org
Nevermind. I see where my mistake was. esc was no set, apparently from my mis-reading the docs. Show quoted text
> if ((defined $def) && > ($def =~ /$RE{delimited}{-delim=>'"'}{-esc}{-keep}/)) { > $def = $3; > } >