Configure apache to run with perl ... while running from browser it asks to save .pl

I have installed fedora 9 and trying to run .pl (perl files) from browser.

I have below RPM installed:
----------------------------------
httpd-2.2.8-3.i386
mod_perl-2.0.3-21.i386

$cat /etc/httpd/conf.d/perl.conf
LoadModule perl_module modules/mod_perl.so

Alias /perl /var/www/perl
<Directory /var/www/perl>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
</Directory>

<Location /perl-status>
SetHandler perl-script
PerlResponseHandler Apache2::Status
Order deny,allow
#Deny from all
Allow from all
</Location>

in my /etc/httpd/conf/httpd.conf i have below line
Include conf.d/*.conf

Now i have put a test.pl perl file in /var/www/perl

[root@linux perl]# more test.pl
#!/usr/bin/perl
Content-type: text/html; (tried with and without)
print 'Hello world.';
[root@linux perl]#

In my browser i user http://hostname/test.pl

It asks me to save rather than show the out put ... please advise

see this if it helps
Re: mod-perl configuration under Apache2

i think the solution lies in the line starting with addhandler in the following

<Location /perl>
allow from all
SetHandler perl-script
AddHandler cgi-script .cgi .pl
#PerlHandler Apache::Registry
#PerlHandler Apache::PerlRun
PerlResponseHandler ModPerl::PerlRun
Options +ExecCGI
PerlSendHeader On
</Location>

tryout and post the results ...

-Regards
AJ

You need essentially "AddHandler cgi-script .cgi .pl", as mentioned in the above post, it means - execute what's inside the script, and whatever the script / file holds, instead of falling into "octet-stream" mode, and suggest download or display.

Thanks to all , Mod_perl rocks !