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!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.