Put the following two lines in your .htaccess file, and miraculously, all executable files in that directory and below are automatically CGI scripts (regardless of the extension or previous MIME type), but non-executable files retain their previous MIME meaning.
PerlFixupHandler "sub { -f $_[0]->filename and -x _ and $_[0]->handler
+(q{cgi-script}) }"
Options +ExecCGI
update: a lot of people have
/msg-ed me about the lone underscore. Yes, that's intended syntax. Look for "solitary underline" in
perlfunc:_X.