Skip Menu |

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

Report information
The Basics
Id: 80259
Status: resolved
Priority: 0/
Queue: Config-IniFiles

People
Owner: Nobody in particular
Requestors: felix.ostmann [...] thewar.de
Cc:
AdminCc:

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



Subject: call to new without a file produce warning
$ perl -MConfig::IniFiles -e 'my $root_cfg = Config::IniFiles->new();' Use of uninitialized value in length at /path/to/module/Config/IniFiles.pm line 828. I use this to chain configurationfiles: $root_cfg = Config::IniFiles->new(-file => ..., -import => $root_cfg);
From: felix.ostmann [...] thewar.de
Perhaps there are siteeffects ... using perl 5.10.1 produce this warning, using 5.14.2 dont show this warning. i fixed it with changing row 828 to return not defined($self->{cf} or not length($self->{cf};
Hi Felix, somewhat reluctantly, I made the check for length more robust, so it should work fine on perl-5.10.x. Note however that perl-5.10.x has been end-of-lifed (as well as perl-5.12.x) and should not be used and you should upgrade. Please don't report issues you encounter with it on rt.cpan.org because it's just noise. See: https://mail.gnome.org/archives/gimp-user-list/2012-October/msg00078.html Regards, -- Shlomi Fish