Our first Perl program

We're about to create our first, simple Perl script: a "hello world" program. There are a couple of things you should know in advance:

Now, just for practice, open a file called hello.pl in your text editor. Type in the following one-line Perl program:

print "Hello, world!\n";

This one-line program calls the print function with a single parameter, the string literal "Hello, world!" followed by a newline character.

Save it and exit.