@ISA is only related to OO inheritance. You have its relationship with Exporter reversed:
@ISA/inheritance does not depend on Exporter, Exporter uses inheritance ("MyModule is-a Exporter"). Most OO Perl modules do not use Exporter at all, since there's rarely a reason to export symbols into someone else's namespace if they're going to be using an OO interface to talk to you.
Also, you can do (single) inheritance without (directly) messing with @ISA, thanks to use base. use base 'Exporter'; is equivalent to use Exporter; our @ISA = qw(Exporter);.
Finally, I just noticed as I was finishing up that last sentence that you're declaring the variables in your example with both use vars and our. One or the other is sufficient, you don't need to do both. (Which of the two is preferred is a matter of taste, but they're functionally equivalent.)
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.