Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
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!

In reply to Re: ASP.NET and PerlScript by Theseus
in thread ASP.NET and PerlScript by Theseus

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2022-08-19 23:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?