in reply to problem with strict in perl 5.6 and asp
Are you using the <%@ PerlScript%> syntax or the <SCRIPT LANGUAGE="PerlScript" RUNAT=Server> syntax to embed PerlScript?
Or better still... how does the following example script work for you?
If that doesn't work as-is, I'd say you've an installation issue.<%@ LANGUAGE="VBScript" %> <HTML> <HEAD> <% Sub InlineSub %> This text won't be displayed until this subroutine is called.<br +> <% End Sub %> <SCRIPT LANGUAGE="VBScript" RUNAT=SERVER> 'Immediate script (outside a function). Response.Write "This text is displayed last" </SCRIPT> <SCRIPT LANGUAGE="JavaScript" RUNAT=SERVER> function TestJavaScript(str) { Response.Write(str); } </SCRIPT> <SCRIPT LANGUAGE="PerlScript" RUNAT=SERVER> sub TestPerlScript { $Response->Write($_[0]); } </SCRIPT> </HEAD> <BODY BGCOLOR=#FFFFFF> <% Response.Write "This is VBScript<br>" TestJavaScript "This is JavaScript<br>" TestPerlScript "This is PerlScript<br>" InlineSub %> </BODY> </HTML>
-David
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: problem with strict in perl 5.6 and asp
by grashoper (Monk) on Nov 05, 2007 at 15:57 UTC | |
by erroneousBollock (Curate) on Nov 06, 2007 at 04:49 UTC |