>>>>> ""Ash" == "Ash Varma" <[EMAIL PROTECTED]> writes:
"Ash> Hi.. "Ash> I have: "Ash> $code[0][0] = "AAA" "Ash> $code[0][1] = "19.5" "Ash> $code[1][0] = "AAD" "Ash> $code[1][1] = "20.0" "Ash> $code[2][0] = "ZZZ" "Ash> $code[2][1] = "10.7" "Ash> $code[3][0] = "XXA" "Ash> $code[3][1] = "5.9" "Ash> $code[4][0] = "YXA" "Ash> $code[4][1] = "27.1" "Ash> $code[5][0] = "AZX" "Ash> $code[5][1] = "1.9" "Ash> What would be the best way to sort this? I'd use the built-in "sort", based on rules that you haven't described yet, or else I would have given code. How do you want these sorted? You have two columns... a three-letter code and a numeric value. Do you want them ascending by numeric values? Descending by code? Ascending by the second character of the code? You'll have to spell that out before you can get more help. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[email protected]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
