At 8:26 AM -0700 8/3/03, wrote: > > At 10:37 PM -0700 8/2/03, 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 }) -] > test >[- &mysub(); -] > > >And i get the next error: >Undefined subroutine &Embperl::__1::mysub > >What am i doing wrong? What happens if you use [$ sub mysub $] [- print OUT "hello"; -] [$ endsub $] instead? Then again, perhaps I'm mis-remembering. Most of my current sites are EmbperlObject sites, so it's possible I've never done that in straight Embperl. -- Kee Hinckley http://www.messagefire.com/ Anti-Spam Service for your POP Account http://commons.somewhere.com/buzz/ Writings on Technology and Society I'm not sure which upsets me more: that people are so unwilling to accept responsibility for their own actions, or that they are so eager to regulate everyone else's. --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org For additional commands, e-mail: embperl-help@perl.apache.org