in reply to Re^6: newbie question to archive::zip
in thread newbie question to archive::zip

This code is WAY neeter, I can't wait till I get this good. The output on the screen is correct but it will not create the zip files:
We have 14 files to work with .. lets begin to the 'c:/temp/zip/030905temp.zip' zip file I will add '30589-030905t +emp-one.tif' to the 'c:/temp/zip/305cv26.zip' zip file I will add '30590-305cv26.ti +f' to the 'c:/temp/zip/306cv26.zip' zip file I will add '30591-306cv26.ti +f' to the 'c:/temp/zip/304cv743.zip' zip file I will add '30592-304cv743. +tif' to the 'c:/temp/zip/304cv264.zip' zip file I will add '30593-304cv264. +tif' to the 'c:/temp/zip/305cv87.zip' zip file I will add '30594-305cv87.ti +f' to the 'c:/temp/zip/305cv87.zip' zip file I will add '30595-305cv87-1o +f2.tif' to the 'c:/temp/zip/305cv87.zip' zip file I will add '30595-305cv87-2o +f2.tif' to the 'c:/temp/zip/305mj66.zip' zip file I will add '30596-305mj66-1o +f2.tif' to the 'c:/temp/zip/305mj66.zip' zip file I will add '30596-305mj66-2o +f2.tif' to the 'c:/temp/zip/305mj65.zip' zip file I will add '30597-305mj65.ti +f' to the 'c:/temp/zip/398cv560.zip' zip file I will add '30598-398cv560. +tif' to the 'c:/temp/zip/504cvmdl227.zip' zip file I will add '30599-504cvm +dl227-1of2.tif' to the 'c:/temp/zip/504cvmdl227.zip' zip file I will add '30599-504cvm +dl227-2of2.tif' Can't locate object method "addFile" via package "zip" (perhaps you fo +rgot to load "zip"?) at C:\work\2statfile_apha.pl line 31.

Replies are listed 'Best First'.
Re^8: newbie question to archive::zip
by jashv (Initiate) on Apr 19, 2006 at 13:50 UTC
    Never mind, I had left out a $ (sometimes the resolutions are so easy) THANK YOU !!!!
      OK, bad news, Yes it does read the entire contents of the directory and make the zip files, this is awesome !!! However, if you re-run the script (say a few days later you have more tif files and you want to append those to the already existing zip) it clears the previous zip files contents and adds the new files. So if it includes:
      123-34cv486.tif 234-34cv486.tif
      and you go to add 345-34cv486.tif it wipes the zip file of the two previous files and then only contains the 345 file. Please help me monks, I want to be wise....