Xah's Perl and Python Tutorial

double snake camel

Xah Lee, 2005, ..., 2007

there is a Python, pithy
mighty, lissome, and tabby
algorithms it puffs
conundrums it snuffs
and cherished by those savvy

there is a camel, kooky
ugly, loathsome, ungainly
hacking it supports
TIMTOWTDI it sports
and transports DWIM-wit's fancy

—Xah Lee, 2005-03

This is a tutorial on Perl and Python. The tutorial is concrete, practical, with a lot short example code that runs. It explains things as they function.

The Pyhton code examples given here are tested with version 2.6. The Perl is v5.8.1 (released 2003-09).

Language Basics

Basic Syntax

Reference resources

What are OOP's Jargons and Complexities?

Lists

Misc

Functions, Objects, Modules

Files

String Pattern Matching (regex) Documentation

Regex

Advanced and Specific, Issues and Examples

Find & Replace string in files

Python

Perl

For a full-featured script that does find-replace in Perl, see: Find & Replace on Multiple Files with Perl

Strings and Text Processing

Web

What is Expresiveness in a Computer Language

Unix Sys Admin

Functional Programing Exercises

Lambda in Python 3000

Python Documentation Problems

About The Author. Thanks to members of comp.lang.perl.misc and comp.lang.python for comments and corrections.

Download this tutorial: xah_perl-python_tutorial.zip.

This work is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 United States License.

Google
WebXahLee.org
2005-01
© 2005 by Xah Lee.