At Wed, 10 Sep 2003 10:47:02 +0300, Jaak wrote:
> I'm using Embperl [$ sub $] feature.
> Is it possible to return "all" data?
>
> modules.epl
> ---
> [$ sub hello $]
> [- ($self, $hello) = @_; -]
> Hello <b>[+ $hello . '...' +]!</b>
> [$ endsub $]
> ---
>
> test.html
> ---
> [-
> $subs = Execute ({'object' => "modules.epl"});
> die $subs->hello('world');
> -]
>
> It returns: "world...",
> but how to return "Hello <b>world...!</b>"
[$sub$]'s don't have useful return values. you have to do something
like:
[-
my $output;
Execute({inputfile => 'modules.epl', sub => 'hello',
output => \$output});
die $output;
-]
--
- Gus
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]