http://qs321.pair.com?node_id=181380


in reply to ASP.NET and PerlScript

This is perl, v5.6.1 built for MSWin32-x86-multi-thread... Binary build 631 provided by ActiveState...
I did download Perlscript from Activestate's site and Perlscript itself is working in aspx files on my server, I can do just about anything besides access the intrinsic ASP objects or load Win32::ASP(because it uses ASP's objects, and so it won't run since $Response keeps coming back undefined).

I'll take a look at PerlNET, but I was under the impression I had installed all the utilities I needed to run Perlscript under ASP.NET. Unfortunately, I'm not interested in the Perl Dev Kit or any other of Activestate's retail software(I doubt my employer will pay for it), I only need whatever is out there and freely downloadable that will make what I need to do possible.

To illustrate my problem, perhaps I should show you two different snippets of code, one that works, and one that doesn't.

This code works:
<%@ Page Language=Perlscript Debug="True" %> <html> <head> </head> <body> <% for $i (1 .. 10) { %> <%= $i %><BR> <% } %> </body> </html>

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

Both of those pages should print the exact same thing, and the second one doesn't work because $Response doesn't seem to ever be initialized as an object. I did some poking around some symbol tables, and I found $Win32::ASP::Response, but that is also undefined. Help!