Bastian Angerstein wrote: > > I got the following Problem: > > My hashkeys looks like "number:string" . > > For example "10530:fileparameter-sa1" > "10529:fileparameter-mv1" > "10531:fileparameter-tx4" > > (without the " signs...) > > I would like to sort the hashkeys by the number > before the doublepoint. > > Any Idea?
my @sorted_keys = do { no warnings 'numeric'; sort { $a <=> $b } keys %hash }; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>