Return-Path: Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 70001 invoked by uid 500); 6 Oct 2002 18:58:47 -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 69987 invoked from network); 6 Oct 2002 18:58:47 -0000 Message-ID: <004c01c26d6a$7c39a9f0$0b0c0b0a@gr.ecos.de> From: "Gerald Richter" To: "Ilia Lobsanov" , References: <32901.24.103.200.125.1033595956.squirrel@backup.virtualrussia.net> Subject: Re: Embperl2.0b8 and Log4perl Date: Sun, 6 Oct 2002 20:59:23 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > I'm using Perl 5.8, mod_perl 1.27, apache 1.3.26, Embperl 2.0b8 > > I'm trying to export &get_logger in startup.pl ala: > > use Log::Log4perl qw(get_logger); > > use Exporter; > our @ISA = qw(Exporter); > our @EXPORT : unique = qw(&get_logger); > > I want to access &get_logger in an epl, but it's not working unless I use > Log::Log4perl qw(get_logger) in the epl again. > Amy I doing something wrong? > No, that's how the things are, because every page runs in it's own namespace, you have to import (i.e. use) the get_logger into every page by adding the use on the top Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: richter@ecos.de Voice: +49 6133 925131 WWW: http://www.ecos.de Fax: +49 6133 925152 ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org For additional commands, e-mail: embperl-help@perl.apache.org