I am using ActiveState's Perl. I tried leaving it with the server's path to Perl and it wasn't to happy with me. As soon as I changed it the script started working. So I'm guessing the local web server (Apache) does look at it.
I'm not an Apache expert by any means, but I haven't seen a config for that yet. That's definitely something worth looking into.