in reply to create zip without path struct

For windows, passing it a relative location rather than an absolute location seems to have worked
my $relPath = '..\\htdocs\\temp\\'; #To get from PerlScript to FileDirectory

Replies are listed 'Best First'.
Re^2: create zip without path struct
by blazar (Canon) on Jan 18, 2006 at 08:39 UTC
    1. Maybe you knew, maybe you didn't: in Perl you can use / as the directory separator even under Windows. That way you won't have to quote all the time which is annoying, error prone, and degrades readability;
    2. not strictly related to Perl or Archive::Zip, but I would regard a relative path like the above as risky. How 'bout ./htdoc/temp/ instead?