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

What are OOP's Jargons and Complexities?

Lists

Misc

Functions, Objects, Modules

Files

String Pattern Matching (regex) Documentation

Regex

Reference resources

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.

If you would like to download this work for reading offline, i'd very much appreciate a donation. In the comment field, please say “perl python tutorial zip file”. I'll email you the download link. Make sure your email address is included and correct.

Thanks!
Home
Terms of Use
About
Advertise
Subscribe
Google
2005-01
© 2005 by Xah Lee.