Although I can run test.cgi fine but my perl all doesn't work, is this htaccess correct:
AddHandler cgi-script .cgi
Options +ExecCGI
IndexIgnore *
DirectoryIndex myapp.cgi
RewriteEngine on
RewriteRule ^$ myapp.cgi [L]
RewriteRule ^/$ myapp.cgi [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ myapp.cgi/$1