Research Computing >> Software >> Perl

 

PERL

Contents:


Availability

Unix: Perl 5.005_03 is installed in Kellogg's research Unix server, skew3.

Windows: Active Perl is available for installation in workstations running Microsoft Windows, Solaris and Linux.

Description

"Perl" is an acronym for "Practical Extraction and Report Language". It is a language for processing text, derived from C, sed, awk, and the Unix shells.

Vendor information

Perl is Open Source software. It can be downloaded from several sites. See the links below.

Support

There are numerous perl user lists and news groups:

Reference books:

Available in the Research Computing Library.

  • Christiansen, Tom & Nathan Torkington, (1998) Perl Cookbook, 1st Edition
  • Cross, David (2001). Data Munging with Perl. Techniques for Data Recognition, Parsing, Transformation and Filtering. Manning Publications.
  • Guelich, Scott, Shishir Gundaravan & Gunther Birznieks (2000). CGI Programming with Perl. O'Reilly & Associates, 2nd edition.
  • Schwartz, Randal L., Erik Olson & Tom Christiansen (1997). Learning Perl on Win32 Systems. O'Reilly & Associates.
  • Schwartz, Randal L. & Tom Phoenix, (2001). Learning Perl, 3rd Edition (a.k.a. the "llama book")
  • Wall, Larry, Tom Christiansen & Jon Orwant, (2000). Programming Perl, 3rd Edition.

Running Perl

Users creating perl scripts must be careful in specifying the location of the perl interpreter. In skew3, the interpreter is in "/usr/local/bin/perl". Thus, the first line in the script should be #!/usr/local/bin/perl. Scripts in skew can be executed by typing "perl scriptname" at the command line or by making the script executable (with the chmod command).

In other Unix hosts, the location of the perl command interpreter can be determined with the whereis command (whereis perl).

Examples and solutions

See Kellogg's online program samples .

There are sample scripts in CPAN and other archives.

Manuals available at Research Computing

For documentation in skew, check the Perl manual pages (man perl). The installation of Active Perl in a workstation will include documentation in HTML format.

Useful links

© 2001-2010 Kellogg School of Management, Northwestern University