in reply to Re^5: Inherit custom sort method from base class
in thread Inherit custom sort method from base class

It should work without "my", and should not work with "my".

Ditto that.

  • Comment on Re^6: Inherit custom sort method from base class

Replies are listed 'Best First'.
Re^7: Inherit custom sort method from base class
by Anonymous Monk on Oct 02, 2013 at 10:08 UTC
    Well, the posted sub specialSort uses $a and $b it doesn't use @_, so  specialSort(qw/ anything here doesnt matter its not used /)

      I thought Anonymonk was referring to the approach of vsespb discussed here, in which the sort parameters are passed via the argument list. But as long as the OPer is happy with the way everything works, I'm happy!