Hello. I'm fairly new to Perl and I'm trying to use CPAN to install a
module. Right now I'm using the CPAN v1.57 that I downloaded from the
MacIntosh porters page, and I'm getting a message saying there's a newer
version available, try 'install Bundle::CPAN'. When I enter this command, I
receive the error: "Can't call method "gzread" without a package or object
reference. Archive::Tar.pm Line 274." Here's the line and some lines above
and below:
269 sub _read_tar {
270 my ($file, $seekable, $extract) = @_;
271 my $tarfile = [];
272 my ($head, $offset, $size);
273
274 $file->gzread ($head, $tar_header_length)
275 or goto &_drat;
276
277 if (substr ($head, 0, 2) =~ /$gzip_magic_number/o) {
278 $error =
280 "Compression not available\n";
281 return undef;
285 }
.
.
.
If anyone could tell me why this error is occurring and how to correct it,
I'd appreciate it.
Thanks,
Dave Frey