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 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 /tmp/v2 and store to @files_v2
> 4) Using List::Compare, I got the files added/removed.
>
> But I need to compare the sizes of files that are common to both
> archives. How can I do that ? Thanks
>
> --
> Thank you
> Balachandran Sivakumar
>
> Arise Awake and stop not till the goal is reached.
>
> Mail: benignb...@gmail.com
> Blog: http://benignbala.wordpress.com/
>
> --
> To unsubscribe, e-mail: beginners-unsubscr...@perl.org
> For additional commands, e-mail: beginners-h...@perl.org
> http://learn.perl.org/
>
>
>

Reply via email to