Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^5: Inherit custom sort method from base class

by vsespb (Hermit)
on Oct 01, 2013 at 23:54 UTC ( #1056556=note: print w/ replies, xml ) Need Help??


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

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


Comment on Re^5: Inherit custom sort method from base class
Re^6: Inherit custom sort method from base class
by AnomalousMonk (Abbot) on Oct 02, 2013 at 00:11 UTC
    It should work without "my", and should not work with "my".

    Ditto that.

      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!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1056556]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2014-09-15 09:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (146 votes), past polls