Perl Scripting 7

Using Perl Modules

Lincoln Stein

Genome Informatics

Suggested Reading

Chapter 13 of Learning Perl, section Using Simple Modules.

Lecture Notes

  1. Using a Module
  2. Getting Module Documentation
  3. Installing Modules
  4. More About Importing
  5. Where are Modules Installed?
  6. The Anatomy of a Module
  7. Exporting Variables & Functions from Modules
  8. Using Object-Oriented Modules

Problem Set

  1. Using the CPAN web site, locate a module for verifying credit card numbers. Download and build it (don't try to install it, because you need root privileges to do this).
  2. If you have already solved the codons problem, create a module that contains the single function translate. This function will take a DNA string and translate it into a protein string using the 1-letter amino acid code.

    If you haven't solved the codons problem yet, come back to this one when you have time.


Genome Informatics


Lincoln D. Stein, lstein@cshl.org
Cold Spring Harbor Laboratory
Last modified: Thu Oct 18 22:27:59 EDT 2001