in reply to Re: Question on Zip::Archive
in thread Question on Zip::Archive

thanks for the reply. you had suggested an option how to not preserve paths while unzipping from Perl script; but i would likt to do the opposite. I would like to NOT preserve the folder structure while zipping itself; so if i create zip files programatically and give it to someone, and when that guy unzips it using Winzip, he should not get the folder structure back. I tried looking at the CPAN doc page for Zip::Archive; but it did not show me any option.

Replies are listed 'Best First'.
Re^3: Question on Zip::Archive
by zek152 (Pilgrim) on Jun 28, 2010 at 20:47 UTC

    The link is:Archive::Zip My suggestion is that if you couldnt figure out how to directly make the zip file without directory information you could make the zip file like you already have, then read it back without path information to make temp files without path information and then write those to the final zip file. It is a really cheesy hack, I know, but if you don't show us the code that gives you issues we can't help you as effectively.

Re^3: Question on Zip::Archive
by Anonymous Monk on Jun 28, 2010 at 20:53 UTC
    There is no module called "Zip::Archive" on cpan c_biswanath :)