http://qs321.pair.com?node_id=11104352


in reply to Open a file

I think that the issue is in your first line of code. You're missing the ':' in the path. It probably should be:

my $filename = "C:/Perl64/Perl Scripts/Names.txt";

Replies are listed 'Best First'.
Re^2: Open a file
by GrandFather (Saint) on Aug 13, 2019 at 01:37 UTC

    I know you are trying to help, but we like to teach fishing instead of simply giving away fish. Corion does an excellent job of teaching fishing (Re: Open a file) with immediate positive results (Re^2: Open a file) which will help liljohn many times in the future. This lesson is teaching the importance of writing good diagnostics into the code which can be used in many different ways and is a great lesson in Perl laziness (do it right the first time).

    Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond