Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use File::Find; my $dir = '\TestDir'; if(-d "$dir") #also tried: if(-d $dir) { find( \&SubRoutineHere, $dir); } else { print "No such directory\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Checking for valid directory
by gjb (Vicar) on Jul 03, 2003 at 15:23 UTC | |
|
Re: Checking for valid directory
by tcf22 (Priest) on Jul 03, 2003 at 15:23 UTC | |
|
Re: Checking for valid directory
by cbro (Pilgrim) on Jul 03, 2003 at 15:24 UTC | |
by Anonymous Monk on Jul 03, 2003 at 15:44 UTC |