You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by David Lloyd <ll...@rebel.net.au> on 2001/06/08 05:48:03 UTC

Question Re: EmbperlObject

If I have:

base.epl

<!-- blah blah -->
[- Execute(*); -]
<!-- blah blah -->

And index.html as:

<!-- blah blah -->
[- get_content_from_a_database("index.html"); -]
<!-- blah blah -->

Where base.epl is the EmbperlObject base, does Embperl also parse the
output of that function? For example, if get_content... returned:

[+ $myvariable $]

Would I see that as a literal on my screen or would the value of
$myvariable be displayed?

DSL
-- 
while (<STDIN>) {
	if (/perl is modem line noise/i) {
		print "BULLSHIT";
	} else { print; }}

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


Re: Question Re: EmbperlObject

Posted by David Lloyd <ll...@rebel.net.au>.
Yep!

> Any output inside the page is not parsed again, but you can run it thru the
> Exeute function to get the desired result:
> 
> <!-- blah blah -->
> [- $code = get_content_from_a_database("index.html"); -]
> [- Execute ({input => \$code}) -]
> <!-- blah blah -->

I stumbled across that solution by reading the documentation, and I'm
now confident I can deliver the product I said that I could deliver
(nothing like doing a Bill Gates to people ;-P)

DSL
-- 
while (<STDIN>) {
	if (/perl is modem line noise/i) {
		print "BULLSHIT";
	} else { print; }}

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


Re: Question Re: EmbperlObject

Posted by "G.Richter" <ri...@ecos.de>.
>
> <!-- blah blah -->
> [- get_content_from_a_database("index.html"); -]
> <!-- blah blah -->
>
> Where base.epl is the EmbperlObject base, does Embperl also parse the
> output of that function? For example, if get_content... returned:
>
> [+ $myvariable $]
>
> Would I see that as a literal on my screen or would the value of
> $myvariable be displayed?
>

Any output inside the page is not parsed again, but you can run it thru the
Exeute function to get the desired result:

<!-- blah blah -->
[- $code = get_content_from_a_database("index.html"); -]
[- Execute ({input => \$code}) -]
<!-- blah blah -->

Gerald



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