I was looking for something else, but then found this and figured it might come in handy for something- here’s how to control the parallel port with Perl using a module called Device:ParallelPort. Device::ParallelPort is a Perl API that allows low level access to the parallel port of most computers. It does this by using a number of drivers, which can be customized and added to, including Linux (direct and parport), Win32, Script, Dummy, and more. It also contains a number of direct access devices including an example printer and a relay controller card. Link.
Controlling a Parallel Port with Perl