No such thing as a small change | |
PerlMonks |
Re: Comparing spaceships (cmp and <=> as options)by LanX (Saint) |
on May 20, 2013 at 16:39 UTC ( [id://1034365]=note: print w/replies, xml ) | Need Help?? |
And now to something completely different =) sort allows providing a function name sort SUBNAME LIST So using an ad-hoc package seems like a short way to solve this :)
I don't like the glob-manipulation in line 140, but it could be used to eval arbitrary complex sort routines. Maybe others have more elegant ideas! =) HTH! Cheers Rolf ( addicted to the Perl Programming Language)
In Section
Seekers of Perl Wisdom
|
|