Return-Path: Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 53396 invoked by uid 500); 3 Aug 2003 15:26:42 -0000 Mailing-List: contact embperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list embperl@perl.apache.org Received: (qmail 53381 invoked from network); 3 Aug 2003 15:26:42 -0000 Received: from core.gralia.com (64.246.46.88) by daedalus.apache.org with SMTP; 3 Aug 2003 15:26:42 -0000 Received: from eplsite.org (localhost.localdomain [127.0.0.1]) (authenticated (0 bits)) by core.gralia.com (8.11.6/8.11.6) with ESMTP id h73FQhe26373; Sun, 3 Aug 2003 08:26:43 -0700 Received: from 200.56.199.220 (SquirrelMail authenticated user ckassab@eplsite.org) by www.eplsite.org with HTTP; Sun, 3 Aug 2003 08:26:43 -0700 (PDT) Message-ID: <32849.200.56.199.220.1059924403.squirrel@www.eplsite.org> Date: Sun, 3 Aug 2003 08:26:43 -0700 (PDT) Subject: Re: Embperl Wishes and comments From: To: In-Reply-To: References: X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal Cc: X-Mailer: SquirrelMail (version 1.2.5) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > 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? 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