Re: Recursive find for a file within a directory

2001-07-29 Thread Dinakar
Hello: You can try File::Find. It will serve your purpose. Dinakar Narendran Kumaraguru Nathan wrote: > Hai Raghavan, > I think you aren't aware of the unix command 'find'. > Just try > > find . -file > Next I've made your program to work, just try this out. I hope > the changes I've

Re: Recursive find for a file within a directory

2001-07-29 Thread Narendran Kumaraguru Nathan
Hai Raghavan, I think you aren't aware of the unix command 'find'. Just try > find . -file Next I've made your program to work, just try this out. I hope the changes I've made is clear for yor. #! /usr/local/bin/perl -w use strict; my @dirList; my $fileName; my $srcDir; my $findRet; $fileN

RE: Recursive find for a file within a directory

2001-07-27 Thread Shepard, Gregory R
All, I am trying to read only text files (using the -T test) from a directory into a hash, and not directories themselves. How do I prevent it from it reading in directories? This sounds like a basic question and know there is probably an easy answer... but I can't think of it. Thanks. @ARGV=$d

RE: Recursive find for a file within a directory

2001-07-27 Thread Mooney Christophe-CMOONEY1
use File::Find;) -Original Message- From: Sudarsan.Raghavan [mailto:[EMAIL PROTECTED]] Sent: Friday, July 27, 2001 2:52 PM To: [EMAIL PROTECTED] Subject: Recursive find for a file within a directory Hello, I am new to perl. I want to find for a file recursively within a directory. Is t