in reply to Re: Invalid top directory at C:/Perl/lib/File/Find.pm line 598
in thread Invalid top directory at C:/Perl/lib/File/Find.pm line 598
Hi JHermida, what do you think, the following command in line 154 of your script does ?
my @files = <"$inputDir"*>;Try to change it to
my @files = glob "$inputDir*";if it's your intention to find all files beneath your top directory.
And you can use Perl::Critic for quickly finding some strange behavior, it stated (for line 154, but there are some other suggestions):
Glob written as <...> at line 154, column 14. See page 167 of PBP. Severity: 5
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Invalid top directory at C:/Perl/lib/File/Find.pm line 598
by JHermida (Initiate) on Sep 20, 2011 at 18:05 UTC | |
by Anonymous Monk on Sep 20, 2011 at 19:21 UTC | |
by JHermida (Initiate) on Sep 21, 2011 at 16:44 UTC |