ronniec has asked for the wisdom of the Perl Monks concerning the following question:
in the Hoos.pm code. My script now fails as a result of "an undefined routine main::mail_log" being called. Next I changed the Hoos.pm code to include -use Exporter ; our @ISA = qw(Exporter)
All of which was lifted from the Perl Objects References & Modules manual. None of this has made a blind bit of a difference, the only way I can call any of the subs in Hoos.pm is to prefix the routine name by Hoos:: - can anyone tell me how to fix this.package Hoos ; our @EXPORT = qw( list of subs mail_log mail end_it etc) ; use Exporter ; our @ISA = qw(Exporter);
Cheers,
Ronnie "Novice" Cruickshank
PS I don't pretend to understand the Exporter/Import business yet so don't presume I know very much!
edit (broquaint): added formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Module Inheritance
by Abigail-II (Bishop) on Apr 29, 2004 at 12:40 UTC | |
|
Re: Module Inheritance
by broquaint (Abbot) on Apr 29, 2004 at 12:44 UTC | |
by Abigail-II (Bishop) on Apr 29, 2004 at 13:00 UTC | |
by broquaint (Abbot) on Apr 29, 2004 at 13:36 UTC | |
by Abigail-II (Bishop) on Apr 29, 2004 at 13:42 UTC | |
by broquaint (Abbot) on Apr 29, 2004 at 14:05 UTC | |
| |
|
Re: Module Inheritance
by gellyfish (Monsignor) on Apr 29, 2004 at 12:45 UTC | |
|
Re: Module Inheritance
by matija (Priest) on Apr 29, 2004 at 12:42 UTC |