in reply to Re: Module Inheritance
in thread Module Inheritance
So there we've set up Exporter to export testsub whenever Hoos is used. Also, you should require Exporter as useing it calls its own import method.A populair belief, but not true. Sure, using 'require' prevents the import() method to be called, but that's not the only way.
Less characters to type, and it gets dealt with at compile time. Why bother with require?use Exporter (); # Don't call import!
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Module Inheritance
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 | |
by bart (Canon) on Apr 29, 2004 at 15:00 UTC |