Quote:
I'm new to Perl programming and I actually posted this question in another forum, but later found out that forum barely had any visitors and thus my question was never really answered. So I'm posting this here hoping someone can help me out
Unfortunately SitePoint hasn't mentioned Perl in like 10 years. I don't know why they have this forum : (
Quote:
did it this way because this was an exercise from the book I'm learning from (Beginning Perl, 3rd Edition) - this is how the book instructed me to do so. Second, my book then asks me to pop open cmd and create two directories through the cmd (I'm using Windows Vista; 64).
One directory as c:> mkdir begperl
second directory as c:> cd begperl
If that were bash, you're not making a second directory: you're first creating a directory (
Quote:
My book then asks me to go to cmd again, and type this statement in: $ perl helloworld.pl (it's the file I saved before) - the book tells me that it should produce the phrase "Hello World!" however the command prompt tells me that $ is an unknown character.
$ typically isn't something you type in, but in code examples it's there to show your "command prompt", and $ is typical for non-root users in many Linux systems (it may be something else if you are root like #). But I have no clue what the"command prompt" is in Windows. I don't believe you were meant to type the $.