List Info

Thread: Template with Win32-ASP on Server 2003 ActivePerl




Template with Win32-ASP on Server 2003 ActivePerl
user name
2006-06-08 15:27:06
 
Thanks, Robert!  Printing the Content-type did the trick in
CGI mode. I
though it was probably something simple.  

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. 

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.  

Thanks for the help.


> (CGI Mode)
> #====    test.pl =====#
> #!/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"


_______________________________________________
templates mailing list
templatestemplate-toolkit.org
http://lists.template-toolkit.org/mailman/listinfo/t
emplates
Template with Win32-ASP on Server 2003 ActivePerl
user name
2006-06-08 20:51:03
Andersen, John P. wrote:
>  
> Thanks, Robert!  Printing the Content-type did the
trick in CGI mode. I
> though it was probably something simple.  
> 
> 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. 
> 
> 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.  
> 
> Thanks for the help.
> 
> 
Oh, leave it then. I pretty much only do Windows stuff at
work. Windows 
will use the .pl extension to identify it. I use other
extensions so I 
need a correct shebang.

Glad I could help...I have been bitten by that little
"bug".

:Robert


_______________________________________________
templates mailing list
templatestemplate-toolkit.org
http://lists.template-toolkit.org/mailman/listinfo/t
emplates
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )