Commits

Shlomi Fish  committed afdcda6

Fix RT #80529

  • Participants
  • Parent commits f77d562

Comments (0)

Files changed (2)

File config-inifiles/Changes

+* Fix https://rt.cpan.org/Public/Bug/Display.html?id=80259:
+    - Warnings on undefined value in length in perl-5.10.x.
+
 Version 2.77    ( Thu Jun 21 19:35:23 IDT 2012 )
 ------------------------------------------------
 

File config-inifiles/lib/Config/IniFiles.pm

 {
     my $self = shift;
 
-    return not length $self->{cf};
+    my $fn = $self->{cf};
+
+    return (not (defined($fn) && length($fn)));
 }
 
 sub _read_line_num