Jailbreaking iPhone: Installing Perl and Python

It is easy to install Python and jail breaking and installing Cydia:

sudo apt-get install python

It is a little more complex to install Perl. You should follow instructions here to add a new repository and its GPG key.