Problems? Is your data what you think it is? | |
PerlMonks |
Array sort - kind of...by smitz (Chaplain) |
on Feb 04, 2002 at 00:51 UTC ( [id://143134]=perlquestion: print w/replies, xml ) | Need Help?? |
smitz has asked for the wisdom of the Perl Monks concerning the following question:
Noble Monks: I've just completed my 1st real program that actually achieves something, and damn it feels good. One part of this script, though, contains an array of arrays, like so:
This array needs to be sorted in order to find the $i with the smallest z value. Not too hard, and I did myself. The problem lies with this website. Since coming here I have seen code so short, efficient, beautifull, etc. that I get quite a minority complex. When I look at the way I sort my array, I just dont like it. Its, well, amateurish. I know this is a simple problem which I have solved, but I would like to see how a real monk would do it. Thanks for your time, SMiTZ
Back to
Seekers of Perl Wisdom
|
|