in reply to Re: ASP.NET, Perlscript, for the love of god...
in thread ASP.NET, Perlscript, for the love of god...

They don't work in ASP. print doesn't do anything in ASP, you can use it with Win32::ASP but that's basically a wrapper that overloads print to use $Response->write, which then gives me an error since there is no such object. Additionally, %ENV is not created as it would be in a CGI environment. None of the CGI/web related variables are there, only some of the ones you would see if you can the script from a console on a Win2k box. Additionally, posted variables are not fed to STDIN, so there's no way to read them. QUERY_STRING variables don't get put in %ENV, so there's no way for me to read them. Without ASP objects, I'm crippled.

The only documentation I can find uses either Win32::ASP(which I can't use because of the error). However, the <%= $var %> syntax does work, oddly enough. However, without the full fledged power of ASP's objects or perl's functions, I can't do much of anything worthwhile.

Weird phenomenon demonstrated below:

This works:
<%@ Page Language=Perlscript Debug="True" %> <html> <head> </head> <body> <% for $i (1 .. 10) { %> <%= $i %><BR> <% } %> </body> </html>
This doesn't:
<%@ Page Language=Perlscript Debug="True" %> <html> <head> </head> <body> <% for $i (1 .. 10) { $Response->Write("$i<BR>"); } %> </body> </html>