The main problem is uses alot of unix shell commands and things as far as i can see, it errors at "do not know how to create a psuedo-tty on your os"
I cant put the code here as it is pages long and i cant format it to display correctly, however here is a link to it:
http://cpan.binarycompass.org/modules/by-module/Comm.pl/