Re: Traversing a directory tree

2001-05-10 Thread Joe Yates
At 04:38 PM 10-05-01 +0530, Amarnath Honnavalli Anantharamaiah wrote: >Ho do I traverse the directory tree and find the file present in it. >I mean I should have an output similar to find command in shell. > >e.g find . -name lock -print Find("/etc", "abcd"); sub Find($$) { my ($sPath, $sM

RE: Traversing a directory tree

2001-05-10 Thread Sandeep Vaidya (LMI)
This is from 'Perl Cookbook': use File::Find; sub process_file { # do whatever; } find (\&process_file, @DIRLIST); Sandeep -Original Message- From: Amarnath Honnavalli Anantharamaiah [mailto:[EMAIL PROTECTED]] Sent: 10 May 2001 13:11 To: Perl Subject: RE: Traversi

RE: Traversing a directory tree

2001-05-10 Thread Amarnath Honnavalli Anantharamaiah
I tried using the File::Find, but I could not trace out the usage properly. Amar -Original Message- From: Amarnath Honnavalli Anantharamaiah [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 10, 2001 4:38 PM To: Perl Subject:Traversing a directory tree Ho do I traverse the