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

CLIENT MODULES

Python comes with a number of modules for communicating with network servers as a client. Most of these provide the same functionality as their Perl equivalents and because the Perl modules work on a class/object basis migrating from a Perl based client to a Python based client shouldn't be too difficult. For reference, I've listed the common Perl modules and their Python equivalent modules in Table 12.4.

Table 12.4. Perl network client modules and their Python equivalents
Perl module Python equivalent
Net::SMTP smtplib
Net::FTP ftplib
Net::NNTP nntplib
Net::POP3 poplib
Net::xMAP imaplib
LWP::Simple urllib
URI urlparse
URI::Escape urllib

We'll take a look at some of the more commonly used modules and some Perl and Python equivalent ...

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