Excuse replying to own post, I screwed up package naming and I have fixed
it. %INC applies to filenames, the namespaces in packages are independent
of that.

Ta.

S.

On Sun, 2 Apr 2000, Shevek wrote:

> I get an error whenever I try to execute a handler:
> 
> [Sun Apr  2 18:37:46 2000] [error] Undefined subroutine
> &Apache::Hello::test called.
> 
> The Apache::Hello is in %INC, but I can't call functions in it, even from
> startup.pl. Now I thought that if I managed to get it into %INC, then I
> could access it fine.
> 
> My startup.pl looks like
> 
> #!/usr/bin/perl
> BEGIN {
>         use Apache ();
>         use lib Apache->server_root_relative('lib/perl');
> }
> use Apache::Constants ();
> use Apache::Registry ();
> use Apache::Hello ();
> &Apache::Hello::test;
> 1;
> 
> What might I have done wrong?
> 
> S.
> 
> --
> Shevek
> GM/CS/MU -d+ H+>++ s+: !g p2 au0 !a w+++ v-(---) C++++$ UL++++$ UB+
> US+++$ UI+++$ P++>++++ L++++$ 3+ E--- N K- !W(-----) M(-) !V -po+ Y+
> t+ 5++ !j !R G' !tv b+++ D++ B--- e+ u+* h++ f? r++ n---- y?
> Recent UH+>++ UO+ UC++ U?+++ UV++ and collecting.
> 

--
Shevek
GM/CS/MU -d+ H+>++ s+: !g p2 au0 !a w+++ v-(---) C++++$ UL++++$ UB+
US+++$ UI+++$ P++>++++ L++++$ 3+ E--- N K- !W(-----) M(-) !V -po+ Y+
t+ 5++ !j !R G' !tv b+++ D++ B--- e+ u+* h++ f? r++ n---- y?
Recent UH+>++ UO+ UC++ U?+++ UV++ and collecting.

Reply via email to