Perl Scripting 7
Using Perl Modules
Lincoln Stein
Suggested Reading
Chapter 13 of Learning Perl, section Using Simple Modules.
Lecture Notes
- Using a Module
- Getting Module Documentation
- Installing Modules
- More About Importing
- Where are Modules Installed?
- The Anatomy of a Module
- Exporting Variables & Functions from Modules
- Using Object-Oriented Modules
Problem Set
- 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).
- 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