No such thing as a small change | |
PerlMonks |
Re: How can I inherit from Bit::Vector?by alien_life_form (Pilgrim) |
on Nov 05, 2001 at 21:02 UTC ( [id://123351]=note: print w/replies, xml ) | Need Help?? |
Greetings,
I am posting what follows by toma's request (very nearly yanked from somewhere in the panther bbok, so I cannot really claim authorship :) ). Note that no strict refs is required to make the ->$cmd( ) bit work. I see nothing that should stop this from working with Bit::Vector... but then again, I would not have anticipated the impossibility to inherit. Manual overriding is obviously possible but much more tedious and error prone than this
You can't have everything: where would you put it?
In Section
Seekers of Perl Wisdom
|
|