Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Open a file

by dasgar (Priest)
on Aug 12, 2019 at 20:15 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11104352]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-25 07:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found