docs.roxen.comBack to normal mode
DocsRoxenWebServer 6.1System Developer Manual PikeProgramming Languages
Copyright © 2019, Roxen Internet Software
Suggestions, comments & compliments
manuals@roxen.com

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!

The default value for the "Perl Tag Support" configuration option is "No". 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);
?>