http://www.perlmonks.org?node_id=11104340


in reply to Open a file

Let Perl tell you the reason why it failed:

my $filename = "C/Perl64/Perl Scripts/Names.txt"; open(my $fh,'<:encoding(UTF-8)', $filename) || die "Could not open file '$filename': $!";