in reply to File::Slurp read_file error

Check the existence of the filename with something like this:
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?

Perl 6 - links to (nearly) everything that is Perl 6.