我收到Can't use an undefined value as a HASH reference
錯誤,嘗試使用aptitude package manager在Debian Lenny OS上安裝使用Perl 5.10/libwww的HTTP::Message::decodable()錯誤。我很困難,所以請欣賞一些幫助。爲什麼HTTP :: Message :: decodable會抱怨「不能使用未定義的值作爲HASH參考」?
這裏的錯誤:
Can't use an undefined value as a HASH reference at (eval 2) line 1. at test.pl line 4 main::__ANON__('Can\'t use an undefined value as a HASH reference at enter code here`(eval 2)...') called at (eval 2) line 1 HTTP::Message::__ANON__() called at test.pl line 6
下面的代碼:
use strict;
use HTTP::Request::Common;
use Carp;
$SIG{ __DIE__ } = sub { Carp::confess(@_) };
print HTTP::Message::decodable();
謝謝!我顯然不是正確的版本。 $ perl -MHTTP :: Message -e'warn $ HTTP :: Message :: VERSION' 5.812 at -e line 1. 如果我查看aptitude,它說libwww-perl包在版本5.813-1 (我不確定爲什麼這與上面命令給出的5.812不同)。看起來像我需要升級 – scarba05 2010-03-17 10:14:23