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
In reply to Re: Module Inheritance
by Abigail-II
in thread Module Inheritance
by ronniec
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |