Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helios!mtecv2!jgabriel From: jgabriel@mtecv2.mty.itesm.mx (Juan Gabriel Ruiz Pinto) Newsgroups: comp.lang.perl Subject: sorting associative arrays Keywords: perl, arrays Message-ID: <2524@mtecv2.mty.itesm.mx> Date: 30 Oct 90 01:59:20 GMT Distribution: comp Organization: Instituto Tecnologico y de Estudios Superiores de Monterrey Lines: 24 I'm doing some perl scripts, but I need to sort an associative array but I want to sort it with the value of each register, I mean, if i have, $xs{"aaa"} = 4; $xs{"bbb"} = 5; $xs{"ccc"} = 2; I want to get the following results after the sort.. bbb 5 aaa 4 ccc 2 Any body has a good procedure to do that? Thank's in advance.. -- ***** Greetings from Mexico! ***** Juan Gabriel Ruiz Pinto Internet: Ing. Sistemas Electronicos jgabriel@mtecv2.mty.itesm.mx I.T.E.S.M. Campus Monterrey