Home > Archive > PERL CGI Beginners > May 2004 > starting perl
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Charlie Davis 2004-05-22, 11:32 am |
| From what I can remember I am running MSDOS version 6.0 (I thank) and the version of perl is perl 5.8
But when I type what it says in the book I am getting an error messagethat states that I have entered a bad command or filename
what I am entering is c:\> perl -w -e "print \ "Hello, World!\n\";"
And then I get the error message.
I must be doing something wrong but I can not figure out what it is.
| |
| Fliptop 2004-05-22, 11:32 am |
| On Sun, 2 May 2004 at 15:00, Charlie davis opined:
Cd:But when I type what it says in the book I am getting an error
Cd:messagethat states that I have entered a bad command or filename what I
Cd:am entering is c:\> perl -w -e "print \ "Hello, World!\n\";" And then I
Cd:get the error message.
Cd:
Cd:I must be doing something wrong but I can not figure out what it is.
what is the error message? posting that always helps us help you.
from a casual glance, i'd say the 1st escaping backslash should not have a
space after it (you want to escape the double quote, not the space).
| |
| jon@hogue.org 2004-05-22, 11:32 am |
|
> from a casual glance, i'd say the 1st escaping backslash should not have a
> space after it (you want to escape the double quote, not the space).
>
try this instead. a little easier to read, and less error prone.
c:\> perl -w -e "print qq( Hello, World!\n ); "
| |
| Thomas S. Dixon 2004-05-22, 11:32 am |
| Sounds to me like your OS doesn't know where the perl executable is. Try
running with c:\perl\bin\perl instead of just perl.
-tommy
Charlie davis wrote:
> From what I can remember I am running MSDOS version 6.0 (I thank) and the version of perl is perl 5.8
>
> But when I type what it says in the book I am getting an error messagethat states that I have entered a bad command or filename
> what I am entering is c:\> perl -w -e "print \ "Hello, World!\n\";"
> And then I get the error message.
>
> I must be doing something wrong but I can not figure out what it is.
|
|
|
|
|