in reply to Falling at the first hurdle

Don't type Perl code at the prompt of your shell. Rather write it into a text file, let's say greeting.pl, and then run perl greeting.pl to run your code.

Remember to save the file before running whenever you modify it.

Replies are listed 'Best First'.
Re^2: Falling at the first hurdle
by jfxd500 (Initiate) on Feb 19, 2011 at 18:21 UTC
    Thank you!!!