in reply to ISA not finding package when use does

Before you put a class into the @ISA, you should have loaded that base class by using it. The base pragma does both steps for you though:

package SDU::CommandHandlerSDU; use base 'SDU::CommandHandler';

My guess is, that you are not using the base pragma and you are also not loading the package SDU::CommandHandler into your namespace, but it is hard to tell, as you didn't post your script ./tobj.pl for inspection either.

perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web

Replies are listed 'Best First'.
Re: Re: ISA not finding package when use does
by set_uk (Pilgrim) on Dec 08, 2003 at 16:03 UTC
    Thanks that sorted it. Believe it or not I did read about before posting - just not in the right place :-)