perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <ckas...@eplsite.org>
Subject Re: Embperl Wishes and comments
Date Sun, 03 Aug 2003 17:42:45 GMT
Hi:

> What happens if you use
>
> [$ sub mysub $]
> [- print OUT "hello"; -]
> [$ endsub $]
>
> instead?
>


it works now but if do something more complex like this:
file subs.epl:
[$ sub mysub $]
	<!-- mysub -->
	[- print OUT "hello"; -]
[$ endsub $]

file index1.epl:
[- Execute ({ inputfile => 'subs.epl', import=>1 }) -]
<html> <head><title> test </title></head><body>
here some body text
[- Execute ({ inputfile => 'footer.epl'}) -]
</body></html>

file footer.epl:

[- &mysub(); -]


I get the again:
Undefined subroutine &Embperl::__3::mysub

If it could be solved it would be great.

Thank you in advance

Carlos Kassab



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


Mime
View raw message