perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filin <fil...@bk.ru>
Subject Trouble with catching output of prcodures
Date Mon, 05 Jul 2004 08:19:03 GMT
I have a trouble with using of output of embperl procedures. E.g. there is following declaration
in some file:
[$ sub somesub $]Some text[$ endsub $]

If I want to catch output of somesub, I can:
	Execute({inputfile=>"file", import=>0});
	Execute({inputfile=>"file", sub=>'somesub', output=>\$str});

But what if I need to use something like:
	$file=Execute({object=>"file"});
	$file->somesub();

How can I catch output in this case?
It is possible of course just to replace [$ sub somesub ... $] with [! sub somesub {...} !],

but I would be VERY glad to hear that it isn't the only decision.

Please help me.

(I use Embperl 1.3.6)

---
Owl


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


Mime
View raw message