Subject: | saveToString throws uninitialized on perl-5.8.8 |
The following piece of code throws an uninitialized warning when run on
perl 5.8.8 (RHEL-5.6)
use Config::Properties;
my $p1 = Config::Properties->new();
my $p2 = Config::Properties->new();
$p1->setProperty( 'foo' => 'bar', );
$p2->setProperty( 'foo' => 'bar', );
print $p1->saveToString();
print $p2->saveToString();
The trick to get the warning is to use two different objects. I do not
see an error when a single object is in scope.
Use of uninitialized value in open at
~/lib/perl5/Config/Properties.pm line 371.
I guess that _string_ on line 370 does need to be initialized after all.
Thanks,
Mithun