Depending on your Apache config, and/or how much control you have over it ... if a directory is set up to execute all files as cgi scripts but only treats index.html as index files, then just name your perl file index.html and it will still execute as Perl.