Subject: | test stops |
Date: | Fri, 12 Jun 2009 14:47:46 +1930 |
To: | bug-http-client [...] rt.cpan.org |
From: | Alberto Mijares <amijaresp [...] gmail.com> |
When
Show quoted text
cpan> install HTTP::Client
the test can't run, so the install process stops.
It reports
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
Global symbol "$file" requires explicit package name at
blib/lib/HTTP/Client.pm line 44.
Global symbol "$file" requires explicit package name at
blib/lib/HTTP/Client.pm line 45.
Global symbol "$file" requires explicit package name at
blib/lib/HTTP/Client.pm line 48.
Compilation failed in require at test.pl line 3.
BEGIN failed--compilation aborted at test.pl line 3.
*** Error code 9
So i just patched like this
- unless (-e $file) {
+ unless (-e my $file) {
in
.cpan/build/HTTP-Client-1.51-e7MyxK/blib/lib/HTTP/Client.pm
then, install is success.