This is a Raspberry Pi project I did a few months ago and meant to post somewhere. There is a Perl interface to the WiringPi module. It's available from
https://github.com/WiringPi/WiringPi-Perl. Unfortunately it doesn't come with any examples, but the WiringPi module comes with some nice examples. Unfortunately they are all written in C and it can take some trial and error to translate and I never found any translations of the examples online, or any WiringPi-Perl specific examples.
...