[Israel.pm] is this a known issue - or should i look into my code??

Gaal Yahas gaal at forum2.org
Thu Jan 8 06:55:43 PST 2009

Looking at the code here:


...it appears you have a line that doesn't contain a "=" but the
module is trying to parse it as key=value. The relevant snippet:

 67                 my ($what,$is) = split(/=/, $line, 2);
 68                 $what =~ s/^\s*//g;
 69                 $what =~ s/\s*$//g;
 70                 $is =~ s/^\s*//g;
 71                 $is =~ s/\s*$//g;
 73                 $data->{$block}->{$what} = $is;

So, I think there's a bug in your ini file. Arguably, there's also a
bug in the module, because it could have caught this condition and not
created a config key with undef value (as it does in line 73). But
this is a ::Simple module, which suggests both the code and the
interface are kept simple.

On Thu, Jan 8, 2009 at 4:20 PM, Chanan Berler <chananb at centerity.com> wrote:
> Hi All,
> I tried running script, and got this warning message:
> Use of uninitialized value in substitution (s///) at
> /usr/lib/perl5/site_perl/5.8.8/Config/INI/Simple.pm line 70.
> I used  Config::INI::Simple module.
> Is this a known issue, or is it mine? How can I know that? Tried google
> it.no luck
> Thanks
> Chanan
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://perl.org.il/mailman/listinfo/perl

Gaal Yahas <gaal at forum2.org>

More information about the Perl mailing list