in reply to Checking files in a directory
From the top of my head (since I can't see the code you're using to create the array of file_names_to_match -- which may be at the root of your problem):
And, OT, unsolicited observation: your line 1 above has at least one problem: the single quotes around $directory in your homebrew error message will prevent Perl from interpolating the var. You may wish to use a more canonical form of the (wise!) attempt to check your conditional:
if ( ! -d $directory ) { die "No such \$directory, $directory: $!"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Checking files in a directory
by AnomalousMonk (Archbishop) on Apr 20, 2011 at 04:41 UTC |