Object Oriented Perl
Defining an Object... The Object
- Your object definition will be stored in a file.
- The name of this file will be the abstract name for the class of
your objects.
- This file should end with the extension ".pm" (Perl Module).
- For example, to create a "Person" class, create a file named
"Person.pm".
- There are ways to "export" this class into the system library,
but that is beyond the scope of this presentation. For now, just keep
the objects you are using and the programs that use them in the
current directory.
Back to Syllabus
Previous: Background
Next: Defining an Object... The Constructor