my $fn = $dirName.'/'.substr($fNameArray[$a], 1, -1) print "File '$fn' exists: ", -e $fn ? "yes\n" : "no\n";
I bet it does not. Maybe you're not in the directory where you think you are? Or maybe there are trailing spaces in your file name?
In reply to Re: File::Slurp read_file error
by moritz
in thread File::Slurp read_file error
by patt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |