This description assumes that you have jailbroken your iPhone and have Cydia and OpenSSH (preferred) or MobileTerminal installed.
- install lynx via Cydia
- install aptitude via Cydia
- login via OpenSSH
- create a download folder (optional)
- cd into the download folder
Download coredev.pub to your iPhone:
- lynx
http://coredev.nl/cydia/coredev.pub 'D' for Download, select 'Save to disk' (coredev.pub), press 'Q' to quit
Continue on the shell, run:
- apt-key add coredev.pub
- echo 'deb
http://coredev.nl/cydia iphone main' > /etc/apt/sources.list.d/coredev.nl.list
- aptitude update
- aptitude install perl
Test it on the shell:
- perl -v
- perl -e 'print "Hello World\n"'