Table of Contents

Assuming it's now all right...

We need to analyse what's going on here a little. First note that the line ends with a semicolon ; . Almost all lines of code in Perl have to end with semicolons, and those that don't have to will accept semicolons anyway. The moral is -- use semicolons. Sorry; the moral is; use semicolons.

Oh, one more thing -- if you haven't already done so, continue breathing.

Also note the \n . This is the code to tell Perl to output a newline. What's a newline? Delete the \n from the program and run it again:

print "My first Perl script";

and all should become clear.    You have now written your first Perl script.