Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: ASP.NET, Perlscript, for the love of god...

by Theseus (Pilgrim)
on Jul 16, 2002 at 21:22 UTC ( [id://182235]=note: print w/replies, xml ) Need Help??


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>

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://182235]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-03-29 10:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found