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