Perl Tutorial

 

Table of Contents

Perl Tutorial Overview

Click the Align button in Komodo's Help Browser to re-size the Komodo workspace and the Help Browser for side-by-side viewing.

Perl Tutorial Scenario

You have exported a number of email messages to a text file. You want to extract the name of the sender and the contents of the email, and convert it to XML format. (You intend to transform it to HTML using XSLT.) In order to create an XML file from a text source file, you will use a Perl program that parses the data and places it within XML tags.

  1. Use the Perl Package Manager (PPM) to install a Perl module that contains code for parsing text files containing comma-separated values.
  2. Open the Perl Tutorial Project and associated files.
  3. Analyze parse.pl the Perl program included in the Tutorial Project.
  4. Generate output by running the program.
  5. Debug the program using the Komodo debugger.
Top

Before You Start

This tutorial assumes...

  • ...that you are running the Tutorial locally from within the Komodo Help Browser. While it can be read online, the interactive functions (such as re-sizing the workspace and creating sample projects) can only be done from within the Komodo Help Browser.
  • ...that ActivePerl build 623 or greater is installed on your system. ActivePerl is a free distribution of the core Perl language. See Komodo's Installation Guide for configuration instructions.
  • ...that you have a connection to the internet.
  • ...that you are interested in Perl. You don't need to have previous knowledge of Perl; the tutorial will walk you through a simple program and suggest some resources for further information.

Top Home Next