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
    I know at this point that $filename exists, and still with $filename been true it still doesn't work, thats why I can't figure it out.