diff --git a/Changelog b/Changelog index 6d8b1c2..61ee7e1 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,6 @@ + 1.27: - "make test" complained about uninitialized value + in :146, which is now fixed. + 1.26: - added filehandle capability to -file. - added -String parameter to new(), which allows one to supply the whole config as a string. diff --git a/General.pm b/General.pm index 05c44a5..f9bfae3 100644 --- a/General.pm +++ b/General.pm @@ -17,7 +17,7 @@ use FileHandle; use strict; use Carp; -$Config::General::VERSION = "1.26"; +$Config::General::VERSION = "1.27"; sub new { # @@ -143,7 +143,7 @@ sub _read { my(@stuff, @content, $c_comment, $longline, $hier, $hierend, @hierdoc); local $_; - if ($flag eq "SCALAR") { + if ($flag && $flag eq "SCALAR") { if (ref($fh) eq "ARRAY") { @stuff = @{$fh}; } @@ -1011,7 +1011,7 @@ Thomas Linden =head1 VERSION -1.26 +1.27 =cut diff --git a/README b/README index 08879c1..82d76cd 100644 --- a/README +++ b/README @@ -59,4 +59,4 @@ AUTHOR VERSION - 1.26 + 1.27