Subject: | undefined value used as a HASH reference at CPANPLUS/Dist/Gentoo.pm |
Date: | Fri, 10 Dec 2010 21:35:35 -0500 |
To: | bug-CPANPLUS-Dist-Gentoo [...] rt.cpan.org |
From: | redneb [...] gmx.com |
While trying to install perlconsole-0.4 I got the following error:
Dist creation of 'PerlConsole::Commands' failed: 'Can't use an
undefined value as a HASH reference at
/usr/lib/perl5/vendor_perl/5.12.2/CPANPLUS/Dist/Gentoo.pm line 429.
Line 429 of CPANPLUS/Dist/Gentoo.pm contains the following:
my $license = $self->meta->{license};
So apparently $self->meta is undef and therefore cannot be used as a
hash reference. I an not sure if this should be considered a
CPANPLUS::Dist::Gentoo bug since it seems to be caused by perlconsole
not having a META.yml file, but still it would be nice if
CPANPLUS::Dist::Gentoo could handle the situation more gracefully. For
example changing the above line to
my $license = ($self->meta || {})->{license};
makes it possible to install perlconsole-0.4.