Click to See Complete Forum and Search --> : Command Prompt Error


kw2102
07-07-2007, 01:42 PM
Hello... So, I'm new at learning perl. I've made the "hello" script, and have saved it to the desktop... but when I type in perl hello.pl in the command prompt, I get this message:

Can't open perl script "hello.pl": No such file or directory.

What does this mean???

CyCo
07-07-2007, 04:26 PM
You'll need to cd (Change Directory) to the Desktop directory, where you have saved hello.pl.

Initially, you'll see something like this:
C:\Documents and Settings\User>
At this point, you would type: cd desktop
at the cursor, which will then produce something like this:
C:\Documents and Settings\User\Desktop>
Now, you are in the Desktop directory, and can then continue with typing hello.pl at the cursor.

kw2102
07-09-2007, 09:00 AM
Thanks...but now I have another problem... it says:

Can find string terminator ' " ' anywhere before EOF at hello.pl line 3.

Here is what's in the script:

#! /usr/local/bin/perl

print "Hello World!\\n\";


I am so confused!

CyCo
07-09-2007, 04:50 PM
print "Hello World!\n";