Introduction to Perl

Lesson One


First I want to say that when I'm doing my hand/hard-coding & editing, I use one of two programs.

As for my script, I decided to do something whimsical, as that always makes me remember my lessons a little more. Hence my "ode" to Lewis Carroll's Alice in Wonderland.

#Simple script inspired by Lewis Carroll
#!usr/bin/perl
system "cls"; # use "cls" for Windows/DOS
# system "clear"; # use for Linux/UNIX
#My First Perl Script 
print "\nhello!";
print "\nTime for a riddle.";
print "\n\nWhen is a raven like a writing desk?";
print "\n\n\tNope, I've no idea either. Sorry!";
print "\n\t\tGoodbye!\n";