Skip Menu |

This queue is for tickets about the Config-General CPAN distribution.

Report information
The Basics
Id: 50329
Status: resolved
Worked: 20 min
Priority: 0/
Queue: Config-General

People
Owner: tlinden [...] cpan.org
Requestors: bitcard [...] faxm0dem.org
Cc:
AdminCc:

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



Subject: Warnings when using -w and Interpolated
When using warnings, I get a lot of messages from Interpolated.pm: Use of uninitialized value $value in substitution (s///) at /opt/lib/perl5/site_perl/5.10.0/Config/General/Interpolated.pm line 80. Use of uninitialized value $value in substitution (s///) at /opt/lib/perl5/site_perl/5.10.0/Config/General/Interpolated.pm line 74. Needless to say these messages disappear when removing warnings or not using interpolated values.
Show quoted text
> When using warnings, I get a lot of messages from Interpolated.pm:
Ok, I don't get any warnings. Could you send me please some example code and config which I can use to reproduce it? Thanks.
On Sat Oct 10 16:46:56 2009, TLINDEN wrote: Show quoted text
> > When using warnings, I get a lot of messages from Interpolated.pm:
> > Ok, I don't get any warnings. Could you send me please some example > code and config which I can use to reproduce it? > > > Thanks.
Sure. I just tracked it down. It happens when using a key without a value. I was sure this was supported, but reading the pod again, I see I was wrong :-/. Sorry about that However, I still think this should be treated. Attached is the sample code. Here's the output: -- $ bugs/cpan-rt-50329 Use of uninitialized value $value in substitution (s///) at /home/fwernli/perl5/lib/perl5/Config/General/Interpolated.pm line 74. Use of uninitialized value $value in substitution (s///) at /home/fwernli/perl5/lib/perl5/Config/General/Interpolated.pm line 80. $VAR1 = 'a'; $VAR2 = '1'; $VAR3 = 'testflag'; $VAR4 = undef; --
Download cpan-rt-50329
application/octet-stream 560b

Message body not shown because it is not plain text.

will be fixed in 2.45.