http://qs321.pair.com?node_id=457194


in reply to unzip

Very nice work, but I'm not sure of the point of this quick replacement?

Archive::Zip, is not part of core perl, so you'd have to go and install this. So in my eyes, you might as well install the unzip package itself.

Just a thought.

Walking the road to enlightenment... I found a penguin and a camel on the way.....
Fancy a yourname@perl.me.uk? Just ask!!!

Replies are listed 'Best First'.
Re^2: unzip
by polettix (Vicar) on May 16, 2005 at 08:35 UTC
    Archive::Zip gives you the flexibility to deal with zip files inside your Perl scripts without resorting to a system/fork, which is sometimes useful for me. Moreover, installing Archive::Zip is easier - you don't have to look for it, it's already at your -MCPAN -e shell :)

    But you're right - the actual point is that I was messing a bit with Archive::Zip and Getopt::Std to take confidence and I wanted to share the results. BTW, I think that I'll look for alternatives to Getopt::Std - it does not give me the possibility to replicate unzip's argument schema in toto...

    Thanks for the thought.

    Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')

    Don't fool yourself.

      No problem.

      It's always good to play with things, as it's the best way to get them into your head.

      -MCPAN -e shell

      But if you've not run that before, it takes ages, and you've got to wait for everything to compile etc. But a apt-get install unzip is quicker ;-)

      Walking the road to enlightenment... I found a penguin and a camel on the way.....
      Fancy a yourname@perl.me.uk? Just ask!!!
        Excellent golf, in both space (less typing) and time (quicker to the goal) - but I usually run Slackware {grin}

        Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')

        Don't fool yourself.
Re^2: unzip
by elwarren (Priest) on May 17, 2005 at 19:10 UTC
    For good or bad, on windows, installing Archive::Zip with PPM slides right through the firewall at work. Installing an exe is forbidden.