Home arrow Perl Programming arrow Page 3 - Perl: Installing It

But How Do I Know it Installed Properly? - Perl

Possessed of a name that stands for "Practical Extraction and Report Language" -- or maybe not -- Perl has expanded from its humble beginnings to let users perform a wide variety of tasks. Before you can use it to do any of those tasks, however, you must install it. That is the focus of this article, the first in a series that will teach you the basics of Perl programming.

  1. Perl: Installing It
  2. Installing Perl
  3. But How Do I Know it Installed Properly?
  4. Unix and Linux and Mac Oh My!
By: James Payne
Rating: starstarstarstarstar / 3
October 09, 2007

print this article



That's a good question. Let's test it out.

Go to your C: Drive and create a folder called PerlPrograms. Then open up a notepad file and enter the following code:


print "James Payne is my Lord and Master!n";

Don't worry about what the code means right now; we'll cover that in a later tutorial. For now, just save the file with the filename test.pl. Copy it over to the PerlPrograms folder we just created.

The next step is to open the Windows Command Prompt. Go to Start>Run, type cmd and click the OK button.

At the prompt, type in the following to change to the current directory to the directory where your script file is located:

cd   c:PerlPrograms  

Since the directory is now changed, we can simply type in the name of the file to have it run. In our case:


If we set up Perl properly, you should see the text: "James Payne is my Lord and Master!"

You can also bypass all of that and simply type: perl -v at the command prompt and the current version of Perl will appear on the screen.

>>> More Perl Programming Articles          >>> More By James Payne

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort


- Perl Turns 25
- Lists and Arguments in Perl
- Variables and Arguments in Perl
- Understanding Scope and Packages in Perl
- Arguments and Return Values in Perl
- Invoking Perl Subroutines and Functions
- Subroutines and Functions in Perl
- Perl Basics: Writing and Debugging Programs
- Structure and Statements in Perl
- First Steps in Perl
- Completing Regular Expression Basics
- Modifiers, Boundaries, and Regular Expressio...
- Quantifiers and Other Regular Expression Bas...
- Parsing and Regular Expression Basics
- Hash Functions

Developer Shed Affiliates


Dev Shed Tutorial Topics: