On Mon, 30 Jul 2001, Greg Tomczyk wrote:

> I am new to this list and hope someone, will be able to help me. I am
> trying to do a find/search on a directory tree and store the results of
> that find into an array which I can then manipulate. I can run find using
> the system command an put contents into a flat file, but I would like to
> understand this find2perl routing. I know find pretty well, but the
> documentation on find2perl is confusing to me. Can anyone help..
>
> Here is the Unix find command:
>
> find $dir -local -exec grep -q $string {} |;
>
>
> and I would like some sort of perl equivalent which would allow the results
> of this find to placed in @filelist...

Have you looked at the File::Find module?

-- Brett
                                   http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
Al didn't smile for forty years.  You've got to admire a man like that.
                -- from "Mary Hartman, Mary Hartman"


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to