perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject Re: Embperl2.0b8 and Log4perl
Date Sun, 06 Oct 2002 18:59:23 GMT


> 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


Mime
View raw message