---

dotcomma.org: Introduction to Perl and CGI: Getting Your First Program to Run

Writing and Running your first Perl Program.
There are a few things you need to know about Perl before we start
programming anything useful. First of all, you need to know that
each Perl program you write starts with a line that looks something
like this:

#!/usr/bin/perl”

“This basically tells the computer that this is a Perl program.
That line points the program to the Perl interpreter, the program
that makes your Perl program into a program that can be executed.
So all you need to know right now is that the first line of your
programs are most likely going to be #!/usr/bin/perl. The -w switch
is available if you want Perl to warn you of possible
errors…”

Complete
Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis