> At 10:37 PM -0700 8/2/03, <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]