[Templates] Template with Win32-ASP on Server 2003 ActivePerl

Andersen, John P. AndersJP@ssch.com
Thu, 8 Jun 2006 08:27:06 -0700


=20
Thanks, Robert!  Printing the Content-type did the trick in CGI mode. I
though it was probably something simple. =20

I don't know which is the proper way to do it, but I have always just
left the #!/usr/bin/perl line as is since I switch back and forth
between UNIX and Windows.  Windows doesn't seem to care.  My guess is it
identifies it because I always use the .pl extension.=20

The fix did not, however, work for ASP mode.  I should mention that ASP
mode works just fine normally.  I can use it with no problems until I
try and use TT with it.  Everytime I use TT and try and do anything with
it (in ASP, remember) I get nothing but a blank page. =20

Thanks for the help.


> (CGI Mode)
> #=3D=3D=3D=3D    test.pl =3D=3D=3D=3D=3D#
> #!/usr/bin/perl

On Windows (with ActivePerl) this is just #!perl



# You need to send the HTTP header
#
print "Content-Type: text/html\n\n"