Re: help with zip files and file sizes

2011-01-31 Thread Parag Kalra
You should probably use a Zip parser - http://search.cpan.org/search?mode=module&query=Archive%3A%3AZip ~Parag On Mon, Jan 31, 2011 at 11:15 PM, Balachandran Sivakumar < benignb...@gmail.com> wrote: > Hi, > > I have 2 versions of a zip file(same archive, but with updates.). > I need to co

help with zip files and file sizes

2011-01-31 Thread Balachandran Sivakumar
Hi, I have 2 versions of a zip file(same archive, but with updates.). I need to compare the 2 versions. I adopted the following approach. The files are v1.zip and v2.zip. 1) extract to /tmp/v1 and /tmp/v2 2) Get the list of files in /tmp/v1 and store to @files_v1 3) Get the list of files in

Re: unloading zip files with perl install script

2003-02-10 Thread Janek Schleicher
On Sat, 08 Feb 2003 21:37:40 -0800, Patricia Hinman wrote: > Does anyone know how to use a zip utility in an > installation script. I would like to create an > installation script for a program I've written. My > only hurdle is learning how to unpack the zip file. > I've heard of gunzip, can I

Re: unloading zip files with perl install script

2003-02-08 Thread ktb
On Sat, Feb 08, 2003 at 09:37:40PM -0800, Patricia Hinman wrote: > Does anyone know how to use a zip utility in an > installation script. I would like to create an > installation script for a program I've written. My > only hurdle is learning how to unpack the zip file. > I've heard of gunzip,

Re: unloading zip files with perl install script

2003-02-08 Thread ktb
On Sat, Feb 08, 2003 at 09:37:40PM -0800, Patricia Hinman wrote: > Does anyone know how to use a zip utility in an > installation script. I would like to create an > installation script for a program I've written. My > only hurdle is learning how to unpack the zip file. > I've heard of gunzip,

unloading zip files with perl install script

2003-02-08 Thread Patricia Hinman
Does anyone know how to use a zip utility in an installation script. I would like to create an installation script for a program I've written. My only hurdle is learning how to unpack the zip file. I've heard of gunzip, can I use that with perl?

Zip Files

2002-11-12 Thread max . calvo
I am need to uncompress a CSV file that is compress in a Zip file. I have been trying for several days to uncompess it with two modules with no luck. The first module is Compress::Zlib. I had tried using the 'uncompress' function but it is not working. The other module that I had tried using is

Re: Can Unlink Remove Tar and Zip files?

2002-04-06 Thread John W. Krahn
Loan Tran wrote: > > This is how i use the unlink. Please take a look. > Thanks. > --- > > #!/usr/bin/perl You should enable warnings and strictures. #!/usr/bin/perl -w use strict; > # clean old file > > use Carp; > > $cur_time = time; # current time in epoch (in > seconds) > $di

RE: Can Unlink Remove Tar and Zip files?

2002-04-05 Thread loan tran
ED] > Sent: 4/5/02 6:17 PM > Subject: Re: Can Unlink Remove Tar and Zip files? > > This is how i use the unlink. Please take a look. > Thanks. > --- > > #!/usr/bin/perl > # clean old file > > use Carp; > > $cur_time = time; # current time in epoc

RE: Can Unlink Remove Tar and Zip files?

2002-04-05 Thread Timothy Johnson
ssage- From: loan tran To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: 4/5/02 6:17 PM Subject: Re: Can Unlink Remove Tar and Zip files? This is how i use the unlink. Please take a look. Thanks. --- #!/usr/bin/perl # clean old file use Carp; $cur_time = time; # current time in epoc

Re: Can Unlink Remove Tar and Zip files?

2002-04-05 Thread loan tran
This is how i use the unlink. Please take a look. Thanks. --- #!/usr/bin/perl # clean old file use Carp; $cur_time = time; # current time in epoch (in seconds) $dir = '/opt/sybase/OCT/dump/'; $hour = 10 ; opendir DIR, $dir || die "Failed to open $dir: $!"; my @files = readdir DIR;

Re: Can Unlink Remove Tar and Zip files?

2002-04-05 Thread drieux
On Friday, April 5, 2002, at 05:14 , loan tran wrote: [..] > I want to remove *.tar and *.Z file too. > > Any suggestions? how were you building your list of files to be removed? i just built both *.tar and *.Z files and was able to remove them with a perl script using the methods listed in

Can Unlink Remove Tar and Zip files?

2002-04-05 Thread loan tran
Hello, In my perl script I use "unlink" to remove files which are older than a given hours. After I ran the script, I saw all the files were removed except tar and zip files. Why unlink does not remove *.tar and *.Z files? I want to remove *.tar and *.Z file too. Any suggestions?

RE: newbie trying to zip files using archive::zip

2002-03-21 Thread Steven McCaffrey
x27;stringMember.txt' ); $member->desiredCompressionMethod( COMPRESSION_STORED ); die 'write error' if $zip->writeToFileNamed( 'someOtherZip.zip' ) != AZ_OK; DESCRIPTION The Archive::Zip module allows a Perl program to create, manipulate, read, and write Zip archive files.

RE: newbie trying to zip files using archive::zip

2002-03-21 Thread Timothy Johnson
} } print "\nFile Selection Complete, writing to \"$zipname\"\n"; $zip->writeToFileNamed("$zipname"); # -Original Message- From: Steven McCaffrey [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 9:22 AM To: [EMAI

newbie trying to zip files using archive::zip

2002-03-21 Thread Steven McCaffrey
Hello: I am trying to combine text files into a single zip file. I've seen the documentation for archive::zip and think this is close to what I need but am still unsure how to use it. I want to take file1.txt file2.txt file3.txt ...and output fileall.zip Any user friendly help is apprecia