in reply to Unzipping files into a directory issue!
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 +";}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Unzipping files into a directory issue!
by Anonymous Monk on Feb 18, 2011 at 13:40 UTC |