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
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
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
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