Have posted this on the PHP forum as well, if anyone with PERL and PHP experience can help it would be greatly appreciated.

http://www.sitepoint.com/forums/showthread.php?t=467780

Regards

Victor.