perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luiz Fernando <l...@engenhosolucoes.com.br>
Subject Re: [$ sub $] return
Date Wed, 10 Sep 2003 11:31:09 GMT
On Wed, 2003-09-10 at 04:47, Jaak wrote:
> I'm using Embperl [$ sub $] feature.
> Is it possible to return "all" data?
> 
> eg.
> 
> modules.epl
> ---
> [$ sub hello $]
> [- ($self, $hello) = @_; -]
> Hello <b>[+ $hello . '...' +]!</b>
> [$ endsub $]
> ---
> 
> test.html
> ---
> [- 
> $subs = Execute ({'object' => "modules.epl"});
> die $subs->hello('world');
> -]

Anywhere you call $subs->hello() will output the all the "output" of the
sub hello.

It should be working as you expected. What version of Embperl you are
using? And what exactly you mean by:
 It returns: "world..."

Regards,

-- 
Luiz Fernando Ribeiro
Engenho Soluções S/C Ltda


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


Mime
View raw message