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 15:26:43 GMT
> At 10:37 PM -0700 8/2/03, <ckassab@eplsite.org> wrote:
>>I know nobody ask for it but i would want to say my wishes.
>>
>>- Embperlobject is great but, is it posible to have for embperl 2 the
>>feature to call subs from other files without using embperl object?
>>maybe it is good to avoid the file search used in embperlobject using
>>the base file base.epl.
>
> Just call Execute with the import option.
>

I have tryed with this:

file subs.epl:
[- sub mysub {    print OUT "hello"; } -]

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

And i get the next error:
Undefined subroutine &Embperl::__1::mysub

What am i doing wrong?

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