Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

So I am running the same script on two platforms Linux and Windows..The Win32 (activestate) part of the code bombs out with an error related to Compress::Zlib. I understand the error but not really in relation to why it would be going on with the module.....

can't use string ("Compress::Zlib::") as a HASH ref while "strict refs" in use at c:\perl\site/lib/Tie/Gzip.pm line 56

Thanks!

Replies are listed 'Best First'.
Re: Compress::Zlib bombs on Win32
by sblanton (Sexton) on Apr 12, 2010 at 14:56 UTC
    Make sure you are running the latest version of Archive::Zip. Even if it is later than what is available from ActiveState.

    I posted a bug, which was fixed, related to extracting trees. Sorry, can't remember the details, but I was able to work around the bug by handling the directories in a loop instead of letting Archive::Zip do it by tree.

    I also had some frustration around creating JAR files.

    So, yes, I had some frustrations but was ultimately able to get everything I needed and it was still the best tool for the job.
      Okay thanks I upgraded let me see if that does the trick...

      ppm> upgrade Archive::Zip Downloading ActiveState Package Repository packlist...done Updating ActiveState Package Repository database...done Downloading Archive-Zip-1.30...done Unpacking Archive-Zip-1.30...done Generating HTML for Archive-Zip-1.30...done Updating files in site area...done 19 files installed
Re: Compress::Zlib bombs on Win32
by Anonymous Monk on Apr 12, 2010 at 13:21 UTC
    Because Tie::Gzip is from 2004, with one review that advises ban this piece until the author has done his homework.

    Checking the author, hes been MIA since 2004, and he is kind of famous for this type of stuff.