Before we start building web pages that use perl we will test whether perl is working correctly.
We will create and execute some perl scripts that have nothing to do with the Web.
(Perl is actually a general purpose scripting language.)
Exercise 1 - 'Hello' from the command line
1. Telnet into cybil and login
2. From your home directory type
perl -e 'print "Hello World \n"'
If perl is running you should see the message Hello World appear.
That was your first perl program.
Exercise 2 - Hello from a text file
Create a text file (use your favourite unix editor pico/joe/vi) containing the following code
print "Hello your name\n";
Save the file as hello1.pl
To execute the file type
/usr/bin/perl hello1.pl