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

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

Written By
Web Webster
Web Webster
Jan 2, 2000

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

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.