Well I read through that site and found some interesting things that I didn't know, but then worked out that I had it set to the wrong Perl interpretter on the main line of the .pl file.
After working out the wrong directory it all kicked in
Thanks for pointing me there anyways Much appreciated.
Dave