|The stupid question is the question not asked|
Re^3: Inherit custom sort method from base classby vsespb (Hermit)
|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