which one is more efficient to search a file
File::Find or File::glob
Regards
Hridyesh
John W. Krahn wrote:
hridyesh pant wrote:
Hi,
Hello,
I want to search a particular file inside the the first level of
directories.
like i have the directories like /usr/local/bin, /usr/package/bin ,
/usr/lib/samba ....etc
i want to search a file only inside the first level of directories like
/usr/local,/usr/package,/usr/lib etc..
I check with File::Find module but it search a file inside all the level
of directories..
You could use globbing:
perldoc -f glob
perldoc File::Glob
Or if you know the exact file name then use the -e file test:
perldoc -f -e
John
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>