in reply to can't unzip file

Where is $GunzipError defined or assigned?

More verbosely (note - I have not tried this): the example use line in IO::Uncompress::Gunzip is use IO::Uncompress::Gunzip qw(gunzip $GunzipError);. The stuff within the qw tells the module that it should define $GunzipError and export it to your current package (ok, a very simplified explanation). Unless you include that, you will need to access $GunzipError probably like this: $IO::Uncompress::Gunzip::GunzipError.

--MidLifeXis

Replies are listed 'Best First'.
Re^2: can't unzip file
by Anonymous Monk on Jan 28, 2011 at 19:59 UTC
    I tried both of those but still no error. Nothing is unzipped though
      The code was in an eval statement which was hiding the error. If the filename is incorrect i get a generic error saying 'gunzipped failed' but if i pass in the correct file name there is no error but nothing is being unzipped