liljohn has asked for the wisdom of the Perl Monks concerning the following question:
I am running Windows 10 and am using Perl 5.8. I can not open a file from a Perl script no matter how I try. My most recent code is as follows:
my $filename = "C/Perl64/Perl Scripts/Names.txt"; open(my $fh,'<:encoding(UTF-8)', $filename) || die "Could not open fil +e";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Open a file
by Corion (Patriarch) on Aug 12, 2019 at 18:08 UTC | |
by liljohn (Initiate) on Aug 12, 2019 at 21:29 UTC | |
by stevieb (Canon) on Aug 12, 2019 at 21:45 UTC | |
|
Re: Open a file
by dasgar (Priest) on Aug 12, 2019 at 20:15 UTC | |
by GrandFather (Saint) on Aug 13, 2019 at 01:37 UTC |