in reply to Re: How to handle password protected zipfiles
in thread How to handle password protected zipfiles

I would suggest reading what File::Spec does. That line is simply building the path to wherever pkzipc.exe is located (assuming that is the name of the binary you are using) and assigning that to $pkzip. Its just a convenient shortcut. Of course, this assumes that you have pkzip (or some other commandline based zip utility) installed (Winzip does not work because it is a GUI, there is a commandline plug-in for it, but it costs). You will also need to read up on qx!! (or other methods for making system type calls with Perl - see the Camel Book or other online documentation for Perl).
  • Comment on Re^2: How to handle password protected zipfiles

Replies are listed 'Best First'.
Re^3: How to handle password protected zipfiles
by bart (Canon) on Dec 01, 2004 at 15:43 UTC
    I don't see the point in using File::Spec to construct the path for an executable on Windows only.

    If you were to actually go search for the program in PATH — or should I say, File::Spec->path — then I could understand. Now you're just acting silly.

      PKzip isn't Windows only. Writing portable code is JustPlainRight(tm).


      The intelligent reader will judge for himself. Without examining the facts fully and fairly, there is no way of knowing whether vox populi is really vox dei, or merely vox asinorum. -- Cyrus H. Gordon
        "Portable"? Using a fixed absolute path?