pray2s8n has asked for the wisdom of the Perl Monks concerning the following question:
Now, when I do this and then try and drop in "use MyParseWhois" in place of "use Net::ParseWhois" it just doesn't work. If I omit the "use Carp" I get messload of errors, but even with it in I still get an error:package MyParseWhois; require 5.004; use strict; use Carp; use vars qw/@ISA/; @ISA = ("Net::ParseWhois"); sub _connect { # My proxy connect code here.... } 1;
Error: "Can't locate object method "new" via package "MyParseWhois::Domain" at whois.pl line 8."my $w = MyParseWhois::Domain->new($dom);
When "MyParseWhois" is changed back to "Net::ParseWhois" it works fine, but then it is not what I need. Now, I _know_ that this has got to be simple enough, but I've read and re-read the tutorial and it's just not working as described. There must be something that I am not seeing. Could someone please set me straight? I'm really only just getting into Objects and such, and I'm sure that I will eventually make sense of this, but for the moment I need my whois script working! Please almighty Perl Monks, help me see the light!
PM
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Stupid Subclassing Question- Net::ParseWhois
by no_slogan (Deacon) on May 14, 2001 at 23:12 UTC | |
|
(tye)Re: Stupid Subclassing Question- Net::ParseWhois
by tye (Sage) on May 15, 2001 at 01:50 UTC | |
by pray2s8n (Initiate) on May 15, 2001 at 02:09 UTC | |
by tye (Sage) on May 15, 2001 at 02:15 UTC | |
|
Re: Stupid Subclassing Question- Net::ParseWhois
by ChemBoy (Priest) on May 15, 2001 at 02:36 UTC |