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: $!"; }In reply to Re: Checking files in a directory
by ww
in thread Checking files in a directory
by Aim9b
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |