in reply to How do you embed a Perl script into an HTML document?

i have found that using frames is the best way around it, but if you insist on not using frames, then you could place a hidden html tag eg. at the point where you want your returned code to appear, create a cript that opens your html file (as a template) and reads it into an array, do a foreach loop through the array and if is found on the line, run the required routine then finnish your foreach loop... I hope that makes sense
  • Comment on Re: How do you embed a Perl script into an HTML document?

Replies are listed 'Best First'.
Re: Answer: How do you embed a Perl script into an HTML document?
by Sue (Initiate) on Jul 13, 2004 at 02:07 UTC
    So far nothing makes sense to me. I'm using Windows XP. I installed ActivePerl and have PerlScript in my registry. I have tried very simple perl scripts: <%@Language=PerlScript%> <HTML> <TITLE> PerlScript Test </TITLE> <% for($i=0; $i<=10; $i+=2) { $Response->Write(""); $Response->Write("Hello World!
    "); } %> </HTML> I get the following error: Error Type: Active Server Pages, ASP 0129 (0x80004005) The scripting language 'PerlScript' is not found on the server. /PerlScript.asp, line 1 or if the asp file is called from an html file I just get HTTP 500 - Internal server error. I have PERL_SRC in my system variables and PERL in my path but no other PERL refernces. I've tried to read all the PERL documentation but I'm getting nowhere and am ready to throw perl away and use C to access mysql.