Running a Perl program from the command line

We can run the program from the command line by typing in:

perl hello.pl

You should see this output:

Hello, world!

This program should, of course, be entirely self-explanatory. The only thing you really need to note is the \n ("backslash N") which denotes a new line.