in reply to
sorting question
my @arr = sort { $a <=> $b } values %hash;
see perldoc -f sort
holli,
/regexed monk/
Comment on
Re: sorting question
Download
Code
Replies are listed 'Best First'.
Re^2: sorting question
by
RazorbladeBidet
(Friar)
on Mar 14, 2005 at 19:37 UTC
Specifically - "If SUBNAME or BLOCK is omitted, sorts in standard string comparison order."
--------------
It's sad that a family can be torn apart by such a such a simple thing as a pack of wild dogs
[reply]
In Section
Seekers of Perl Wisdom