In a text editor, type the program. The traditional example is ``Hello World''1.1.
#!/usr/bin/perl print "Hello World!\n";
The second line tells the computer to print out to the terminal the string in quotes. The ``\n'' is perl for ``Start a new line.''
Save it as ``hello.pl''.
At a terminal prompt (in UNIX, the ``%'' or ``$'' or, in DOS, ``C:\>perlfi1'') type ``perl hello.pl'' and then a return:
% perl hello.pl
The computer will print out: