Hello all,

I recently compiled ModPerl into Apache and added the following to my
httpd.conf:

<Files *.pl>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
</Files>

Modperl itself is working wonderfully...but there's one problem....
ever since i installed it and began using it,
Content-Type: text/html
prints at the beginning of all my scripts.  The scripts work fine, but for
some reason, instead of the content-type being interpreted by the browser,
it prints to the screen.
If I REMOVE that from my script, the script loads 100% fine in Internet
Explorer...but in netscape, beause the Content-Type header is no longer
there, it stops printing EVERYTHING to the screen (in fact, if I execute a
perl script, netscape tries to save the output to a text file instead of
printing the output internally in the program itself).

Is there anyway to fix this?  I need my scripts to work, but I also can't
have Content-Type: text/html appearing in the middle of the screen.  Is
there a way in httpd.conf to say "Tell the browsers that all scripts ending
in .pl are Content-Type: text/html\n\n" (they are, btw...I dont use any
other content types in my perl scripts)...

Any ideas?

Thanks!!!

-Matt

----------------------------------------------------------------------------
------------------------
but when your dreams have to be parsed via your minds php module,
you know theres a problem...
----------------------------------------------------------------------------
------------------------


Reply via email to