perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Foertsch <torsten.foert...@gmx.net>
Subject Re: Undefined subroutine error
Date Wed, 15 Apr 2009 08:29:20 GMT
On Wed 15 Apr 2009, Roberto C. Sánchez wrote:
> > Would it be possible to post your module? Perhaps you forgot
> > the "package" declaration?
>
> ----------8<---------->8----------
>
> package Example::Image;

Ok, then how about checking if your module is really loaded. 
Apache2::Status provides that or you could probably use this 
PerlResponseHandler (untested):

<Location /DUMPMODULES>
  SetHandler modperl
  PerlResponseHandler "sub {              \
    use Data::Dumper;                     \
    use Apache2::RequestRec();            \
    use Apache2::RequestIO();             \
    $_[0]->content_type(q{text/plain});   \
    $_[0]->print(Dumper(\%INC));          \
    return 0;                             \
  }"
</Location>

It prints %INC to the browser. So you can check if your module is loaded 
from the correct path.

Torsten

-- 
Need professional mod_perl support?
Just hire me: torsten.foertsch@gmx.net

Mime
View raw message