deprecated has asked for the wisdom of the Perl Monks concerning the following question:
the error messages I get that are pertinent are thus (where MP3::Napster is "OtherModule" and OpenNap.pm is "MyModule"):## begin mymodule.pm package OtherModule::MyModule; use OtherModule; @OtherModule::MyModule::ISA = qw (OtherModule ); sub new { my $self = $_[0] -> SUPER::new(@_[1..$#_]); ${ $self -> ${ _count } }--; $self -> { _count } = \$_count; ${ $self -> ${ _count } }++; $self; } ### begin myscript.pl use OtherModule; use OtherModule::MyModule; our $object = OtherModule::MyModule -> new ( qw( foo bar baz bletch ) +);
Sorry, im sure that will be wrapped in the ugliest manner possible on most browsers. I gather I am having a problem with something called 'AUTOLOAD'? I'm just not sure how to make it happy. I get the feeling I am very close to being done here.Uncaught exception from user code: Undefined subroutine MP3::Napster::OpenNap::registry at /usr/l +ocal/libdata/perl5/site_perl/MP3/Napster/Base.pm line 29 MP3::Napster::Base::AUTOLOAD('MP3::Napster::OpenNap=HASH(0x39c +9c)', undef) called at /usr/local/libdata/perl5/site_perl/MP3/Napster +.pm line 398 MP3::Napster::disconnect('MP3::Napster::OpenNap=HASH(0x39c9c)' +) called at /usr/local/libdata/perl5/site_perl/MP3/Napster.pm line 88 MP3::Napster::new('MP3::Napster::OpenNap', '127.0.0.1:31337') +called at /home/alex/conf/lib.perl/MP3/Napster/OpenNap.pm line 76 MP3::Napster::OpenNap::new('MP3::Napster::OpenNap', '127.0.0.1 +:31337') called at skillz line 24 main::dacts() called at skillz line 127
Thanks again, and sorry if I am repeating myself.
brother dep.
--
Laziness, Impatience, Hubris, and Generosity.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 1: Reverse Inheritance Irritance
by tilly (Archbishop) on Mar 27, 2001 at 11:04 UTC | |
by darobin (Monk) on Mar 28, 2001 at 01:32 UTC | |
by tilly (Archbishop) on Mar 28, 2001 at 09:03 UTC | |
|
Re: Reverse Inheritance Irritance
by dws (Chancellor) on Mar 27, 2001 at 11:05 UTC |