You probably wanted to have "Read of $filename failed\n" not "Read of $zip..." The way you have it is printing the zip object.
You might try a file check like if(-e $filename) before you try to read the archive. Then if it exists, do something like
unless($zip->read($filename) == AZ_OK ) {die "failed to open $filename +";}
In reply to Re: Unzipping files into a directory issue!
by Gulliver
in thread Unzipping files into a directory issue!
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |