http://www.perlmonks.org?node_id=1015680

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

Hi , I was using 5.14 version of perl and in my pgm i have to uncompress .gz files . I used IO:Uncompress:Gunzip module.But in my client machine i am having Perl 5.8.7 and the above mentioned module was not working in that.I have even placed the module and dependencies in lib folder.Is there any method to do uncompressing in Perl 5.8.7?

Replies are listed 'Best First'.
Re: Unzipping files in 5.8.7 version
by marto (Cardinal) on Jan 28, 2013 at 10:55 UTC

    "not working" isn't an error report (see How do I post a question effectively?). Copying the files around manually isn't a wise route to take for module installation. From the command line cpan IO:Uncompress:Gunzip will install the module and prerequisites, the README documents the manual installation method along with the module requirements.

    Update: added missing bracket.

Re: Unzipping files in 5.8.7 version
by Mr. Muskrat (Canon) on Jan 28, 2013 at 19:14 UTC

    Properly install IO::Uncompress::Gunzip instead of copying the files into the lib folder because Perl 5.8.x and 5.14.x are not binary compatible.

    Update: Wow, uh, I guess I'm not paying attention today because marto already basically said the same thing.