develooper Front page | perl.beginners | Postings from April 2008

Re: I want a perl script for?

Thread Previous | Thread Next
From:
Rob Dixon
Date:
April 30, 2008 14:37
Subject:
Re: I want a perl script for?
Vinayak dutt wrote:
> 
> As am new to Perl and their is a requirment which says -
>
> 1. There exists a .zip which contains folders and file.
>
> 2. Search for 'makefile' in the respective folders and store them in a text
> file.
>
> 3. And search for .c files in them and list them in separate text file.
>
> 4. Then the files that exists other than .c files should be removed from the
> dir.
> 
> Can anybody give me an idea as to how to solve the above req.

I think that, since you are new to Perl, it would be better to extract the
contents of the zip archive before you try to process its contents with Perl.

What you have described isn't trivial, and to do it within the context of a
single archive file would be a struggle without a few months of Perl experience.

Rob

Thread Previous | Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About