docs.roxen.comView this page in a printer friendly mode
DocsRoxenWebServer 6.1System Developer Manual PikeProgramming Languages
Copyright © 2021, Roxen Internet Software
Suggestions, comments & compliments
manuals@roxen.com
 DEMO  DOCS  PIKE
 COMMUNITY  DOWNLOAD
www.roxen.com

   

Pike
Pike Script
Pike Processing Instruction
Java
Perl
Using In-Line Perl Code
Running Perl Scripts
Supported mod_perl API Methods
CGI
What is a CGI Script?
CGI Environment Variables
CGI I/O Via Standard Streams
PHP
Python

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);
?>