|XP is just a number|
Re^3: Inherit custom sort method from base classby vsespb (Chaplain)
|on Oct 01, 2013 at 22:50 UTC||Need Help??|
and remove specialSort from MySubclass.
you have to use 1st and 2nd arguments instead of $a and $b in base class' specialSort
You cannot use $self->specialSort as subroutine name, so you have to use new "subroutine":
Also, technically, you can put
into base class,
then remove specialSort from MySubclass, and then it will work.
but it's probably bad style to mix inheritance and exported functions.
UPD: fixed $a,$b in code