Just another Perl shrine | |
PerlMonks |
Re^2: Custom Sort An AoAby Limbic~Region (Chancellor) |
on Apr 01, 2014 at 17:09 UTC ( [id://1080601]=note: print w/replies, xml ) | Need Help?? |
Corion,
I must not have done a good job of explaining. Start at the last element and if they are equivalent then check the next to the last and if they are equivalent check the next to the next to the last.... Your solution fails to produce the correct output because you are only comparing the last element. Cheers - L~R
In Section
Seekers of Perl Wisdom
|
|