Skip to Content
Perl To Python Migration
book

Perl To Python Migration

by Martin C. Brown
November 2001
Beginner
320 pages
5h 53m
English
Pearson Business
Content preview from Perl To Python Migration

Chapter 7. MODULES, CLASSES, AND OBJECT ORIENTATION

The last part of the core migration from Perl to Python is to understand how to import modules that we need to use and how to re-use and distribute your own code and libraries. Also related to this stage is the creation of classes, generally placed into modules in their own right, and how this relates to the Python object orientation system that pervades all parts of the language.

Both Perl and Python allow you to easily reuse your existing code base in new applications through the use of modules – Python is somewhat easier to use in this respect than Perl. The basic mechanics of putting your favorite routines into a module and loading that module on demand remain the same however.

In this chapter ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Perl in a Nutshell

Perl in a Nutshell

Nathan Patwardhan, Ellen Siever, Stephen Spainhour
Perl by Example

Perl by Example

Ellie Quigley
Perl Hacks

Perl Hacks

Chromatic, Damian Conway, Curtis Ovid Poe, Curtis (Ovid) Poe

Publisher Resources

ISBN: 0201734885Purchase book