in reply to LWP::UserAgent interaction w/ Archive::Zip
Okay, the IO::Scalar pointer has helped, now I am getting a unblessed reference error when I attempt to pass it to $zip->read()
Here is a revised code and the error:
The error, w/ use diagnostics:
And if anyone cares, the offending code from Archive::Zip:
Here is a revised code and the error:
my $SH = IO::Scalar->new(); $SH->open (\$res->content()); # my $SH = tie *ZIP, 'IO::Scalar', \$res->content(); my $zip = Archive::Zip->new(); die ("Error reading Zip File : $!\n") if $zip->read ( \$SH ) != A +Z_OK; # die ("Error reading Zip File : $!\n") if $zip->read ( \*ZIP ) != + AZ_OK;
The error, w/ use diagnostics:
Can't call method "isa" on unblessed reference at /opt/perl/lib/site_perl/5.6.1/Archive/Zip.pm line 624 (#1)
And if anyone cares, the offending code from Archive::Zip:
if ( ref( $fd ) ) { if ( $fd->isa( 'IO::Handle' ) or $fd->isa( 'GLOB' ) ) { $status = $handle->fdopen( $fd, @_ ); } else { $handle = $fd; } }
--SparkeyG
A humble monk over his head.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re2: LWP::UserAgent interaction w/ Archive::Zip
by bikeNomad (Priest) on Jul 11, 2001 at 03:15 UTC |
In Section
Seekers of Perl Wisdom