Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Open a file

by dasgar (Priest)
on Aug 12, 2019 at 20:15 UTC ( #11104352=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11104352]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2021-01-23 05:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?