Xah Lee, 2005, ..., 2007
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).
Basic Syntax
Lists
Misc
Functions, Objects, Modules
Files
String Pattern Matching (regex) Documentation
Regex
For a full-featured script that does find-replace in Perl, see: Find & Replace on Multiple Files with Perl
What is Expresiveness in a Computer Language
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.