Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Noob Question

by Corion (Pope)
on Oct 28, 2012 at 18:05 UTC ( #1001284=note: print w/ replies, xml ) Need Help??


in reply to Noob Question

The "current directory" is not what you think it is. Perl will go looking for test1.txt in the current directory, which is not necessarily the directory the current Perl script lives in.

Most likely you are running your script like:

C:\>perl -w C:\Scripts\nick1984.pl

... which means that the "current directory" is C:\ and Perl goes looking for C:\test1.txt, and does not find it there.

Change either the current directory or move the file to a different place.


Comment on Re: Noob Question
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2014-08-29 11:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (280 votes), past polls