docs.roxen.comView this page in a printer friendly mode
DocsRoxen2.1Programmer ManualPerl
Copyright © 2001, Roxen Internet Software
Suggestions, comments & compliments
manuals@roxen.com
 DEMO  DOCS  PIKE
 COMMUNITY  DOWNLOAD
www.roxen.com

   

Using In-Line Perl Code
Running Perl Scripts
Supported mod_perl API Methods

Using In-Line Perl Code

How to use the <?perl ... ?> processing instruction in your RXML pages.

In-line perl code in <?perl ... ?> processing instructions can be executed much like scripts, and the same subset of the Apache API is available as in the perl script support described in the API section.

Note that the default value for the "Perl Tag Support" configuration option is "No", and that this has to be changed to "Yes" for in-line Perl code to be executed. Also note that the "RXML-parse tag results" option has to be switched to "Yes" if you want the output produced by the Perl code to be RXML parsed afterwards.

An example perl PI tag:

<?perl
Roxen->request()->print(scalar localtime);
?>