Apache :: ASP
  INTRO
  INSTALL
  CONFIG
% SYNTAX
  EVENTS
  OBJECTS
  SSI
  SESSIONS
  XML/XSLT
  CGI
  PERLSCRIPT
  FAQ
  TUNING
  CREDITS
  SUPPORT
  SITES USING
  RESOURCES
  TODO
  CHANGES

  EXAMPLES

Powered by Apache::ASP
Powered by ModPerl and Apache
Links Checked by NodeWorks

SYNTAX

ASP embedding syntax allows one to embed code in html in 2 simple ways.
The first is the <% xxx %> tag in which xxx is any valid perl code.
The second is <%= xxx %> where xxx is some scalar value that will
be inserted into the html directly.  An easy print.
  A simple asp page would look like:

  <!-- sample here -->
  <html>
  <body>
  For loop incrementing font size: <p>
  <% for(1..5) { %>
	<!-- iterated html text -->
	<font size="<%=$_%>" > Size = <%=$_%> </font> <br>
  <% } %>
  </body>
  </html>
  <!-- end sample here -->
Notice that your perl code blocks can span any html. The for loop above iterates over the html without any special syntax.
Copyright © 1998-2000, Joshua Chamas, Chamas Enterprises Inc.