r29559 - /trunk/dh-make-perl/lib/DhMakePerl/Config.pm

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Sun Jan 11 14:45:56 UTC 2009


Author: dmn
Date: Sun Jan 11 14:45:53 2009
New Revision: 29559

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=29559
Log:
use LoadFile instead of just Load for loading dh-make-perl.conf

Load() only wotks with scalars.

Modified:
    trunk/dh-make-perl/lib/DhMakePerl/Config.pm

Modified: trunk/dh-make-perl/lib/DhMakePerl/Config.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/dh-make-perl/lib/DhMakePerl/Config.pm?rev=29559&op=diff
==============================================================================
--- trunk/dh-make-perl/lib/DhMakePerl/Config.pm (original)
+++ trunk/dh-make-perl/lib/DhMakePerl/Config.pm Sun Jan 11 14:45:53 2009
@@ -152,7 +152,7 @@
 
     if ( -e $fn ) {
         local $@;
-        my $yaml = eval { YAML::Load($fn) };
+        my $yaml = eval { YAML::LoadFile($fn) };
 
         die "Error parsing $fn: $@" if $@;
 




More information about the Pkg-perl-cvs-commits mailing list