Recent Changes - Search:

Perl

Team: Webteam Task list Roles Technology: PHP Perl CSS PmWiki Links Development notes Website: About All recent changes


Perl

Perl Usage

Apache mod_perl provides the server side scripting language. The following conventions are used in developing Perl scripts for the TTC web site:

  • We follow the Perl style guide
  • We always use the -w flag.
  • Each script file is a separate package.

Perl Development

Selected information from the Perl documentation and manual.

  • Introduction
  • Testing Tutorial
  • Beginners Object Oriented Tutorial
  • Debugging and debug tutorial
  • Security
  • Syntax
  • Regular expressions, quick start, and tutorial

References

  • mod_perl
  • perl
  • activestate activeperl

Mirroring

This section discusses installing and using perl to mirror the club's web site.

Installation

The covers the installation on a WindowsXPHome machine. In general this should work for most versions of windows, but is not recommended on Win9x.

  • Download the ActiveState version of Perl (msi version)
  • Install
    • Install to c:/usr/ (rather than the default c:/perl/), this will make your shebang lines work much better.
  • Update you Apache configuration files

Execution

You should have little trouble getting your perl script to run under windows. If you have trouble getting them to work once they have been uploaded to the website check the following:

  • Upload using Ascii, not Binary
  • Use an editor that uses Unix, not Windows, linebreaks
  • Make sure you uploaded the file to the correct directory
  • Ensure the file has execute permission set against it

It is advisable to test you scripts locally. You can do this through the web server, but first you should test them from the command line. Use the ttc.pl as a test framework.

Perl Environment

Edit - History - Recent Changes - WikiHelp - Search
Hosted by Wellington Community Net
Page last modified on 2005 Oct 13 09:25