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
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
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
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,
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,
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?
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
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
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
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
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;
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
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?
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.
}
}
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
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
16 matches
Mail list logo