Apache :: ASP :: SYNTAX
Description: This perl module provides an Active Server Pages port to the Apache HTTP Server with perl as the host scripting language. Active Server Pages is a web application platform that originated with the Microsoft IIS server. Under Apache for both Win32 and Unix, it allows a developer to create dynamic web applications with session management and perl code embedded in static html files.
Keywords: apache,asp,perl,mod_perl,active server pages,web application,session management, scripting,dynamic html,perlscript,unix,win32,winnt,cgi compatible

INTRO
INSTALL
CONFIG
SYNTAX
EVENTS
OBJECTS
SSI
CGI
PERLSCRIPT
FAQ
TUNING
CREDITS
SUPPORT
SITES USING
EXAMPLES
| 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 (c) 1998-1999, Joshua Chamas, Chamas Enterprises Inc.