It is Apache, Coderifous. I'll have a look in the httpd.conf file for any "fun looking lines".
In the course of this I finally discovered how the redirect a visitor using PHP so, if I can't crack the perl problem, and if I can find out how to get the referer in PHP, I'll do it in PHP...