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

Monks Can someone most efficiant way to unzip a zipped file and move to a unc path

Replies are listed 'Best First'.
Re: extracting zips
by Velaki (Chaplain) on Nov 30, 2004 at 22:13 UTC

    You might wish to try using Archive::Zip to extract the files.

    Pax vobiscum,
    -v
    "Perl. There is no substitute."
Re: extracting zips
by saintmike (Vicar) on Dec 01, 2004 at 09:14 UTC
    ... or use system("unzip foobar.zip");
Re: extracting zips
by rrwo (Friar) on Dec 02, 2004 at 00:55 UTC

    I would move the zip file to the UNC path first (less network bandwidth) and have something on that computer unzip it.

    Probably too much work for something simple, actually.

    Look at the various Win32::* modules to see which ones can help you with UNCs. I've not had a problem in current versions of Perl, but years ago when working on a project to transfer files between Windows NT and Novel NetWare 3 servers I had to use something that manually mapped drives before copying (because UNCs didn't work on ancient ActiveState Perl back then) and then unmapped when it was done.