You are previewing Perl To Python Migration.
O'Reilly logo
Perl To Python Migration

Book Description

Perl to Python Migration provides a useful and practical resource for programmers that are currently intermediate or expert in using Perl and who want to migrate to using Python for different programming projects. The book achieves this by first giving the user an overview and refresher of the Perl techniques required before giving the information on using Python to achieve the same result. Examples of both Python and Perl will be available on-line on the author's website.

Table of Contents

  1. Copyright
  2. ACKNOWLEDGMENTS
  3. INTRODUCTION
  4. INTRODUCTION TO PYTHON
    1. INTRODUCTION
      1. PERL BACKGROUND
      2. PYTHON BACKGROUND
      3. MORE ABOUT PYTHON
      4. WHAT IS IT GOOD FOR?
      5. WHAT ISN'T IT GOOD FOR?
      6. WHO USES IT?
    2. EXECUTING PYTHON PROGRAMS
      1. INTERACTIVELY
      2. EXECUTION FROM A FILE
      3. OTHER METHODS
    3. PYTHON OVERVIEW
      1. BASIC STRUCTURE
      2. VARIABLES, DATA, AND OBJECTS
      3. STATEMENTS AND EXPRESSIONS
      4. BUILT-IN FUNCTIONS
      5. MODULES
      6. THE EXECUTION MODEL
  5. LANGUAGE FUNDAMENTALS
    1. COMPONENTS OF A PYTHON PROGRAM
      1. THE BASICS
      2. PYTHON VARIABLES
      3. OBJECT ODDITIES
      4. PYTHON OPERATORS
    2. FUNCTIONS
      1. BASIC FUNCTION DEFINITION
      2. ADVANCED FUNCTION CALLING
    3. EXCEPTIONS AND ERROR TRAPPING
      1. ERROR TRAPPING IN PERL
      2. ERROR TRAPPING IN PYTHON
      3. THE EXCEPTION SYSTEM
      4. EXCEPTION HANDLERS
      5. BUILT-IN EXCEPTIONS
      6. CREATING NEW EXCEPTION CLASSES
      7. RAISING AN EXCEPTION
    4. MODULES, CLASSES, AND OBJECT ORIENTATION
      1. MODULES
      2. CLASSES
  6. APPLYING PYTHON
    1. BUILT-IN FUNCTIONS
      1. PERL TO PYTHON TRAPS
    2. INTERFACING WITH THE OPERATING SYSTEM
      1. COMMUNICATING WITH THE SYSTEM
      2. WORKING WITH THE OPERATING SYSTEM
    3. DATA MANIPULATION
      1. BASIC STRING HANDLING
      2. REGULAR EXPRESSIONS
      3. SORTING SEQUENCES
      4. COPYING VARIABLES
      5. EXTERNAL DATA SOURCES
    4. FILE MANIPULATION
      1. FILE PROCESSING
      2. FILE MANAGEMENT
    5. COMMUNICATING OVER A NETWORK
      1. BASIC SOCKET FUNCTIONS
      2. RUNNING A SERVER
      3. OBTAINING NETWORKING INFORMATION
      4. CLIENT MODULES
    6. WEB DEVELOPMENT
      1. BASIC CGI PROGRAMMING
      2. HANDLING COOKIES
      3. URL PROCESSING
      4. ZOPE
    7. GUI DEVELOPMENT WITH TK
      1. BASIC OPERATIONS
      2. DIALOG BOX SAMPLE
  7. APPENDICES
    1. PYTHON RESOURCES
      1. WEB RESOURCES
      2. E-MAIL, NEWSGROUP, AND MAILING LIST RESOURCES
      3. ONLINE DOCUMENTATION
      4. PRINT RESOURCES
    2. PERL TO PYTHON QUICK REFERENCE