perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angus Lees <...@inodes.org>
Subject Re: Dynamic Embperl
Date Thu, 13 Nov 2003 22:56:11 GMT
At Thu, 13 Nov 2003 11:14:10 +0100, Jörg Kütemeier wrote:
> Embperl::Execute({
>   inputfile => '...some file', # is important for embperl (e.g. caching)
> 	                         # it identifies the "real" request with it 
>   mtime => undef,              # time for last modified...
>   input => \$content
> 
> ... if you need it you can even redirect the output with
>   output => \$outputvar
> });

Just to repeat, since earlier posters seemed to have missed this in
the Embperl docs, 'input' and 'output' args to Execute let you run
to/from a scalar.

The 'mtime' and 'inputfile' args are used for caching, see docs and
take advantage of them if you can (have an mtime field in your DB).

-- 
 - Gus


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message