Thread Suchalgorithmus (15 answers)
Opened by [E|B] at 2004-02-23 19:08

esskar
 2004-02-23 19:56
#80296 #80296
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
sub hex2str
{
shift =~ s/([a-fA-F0-9]{2})/pack("C", hex($1))/eg;
}

@x = sort
{
my $thea = hex2str($a->[0]);
my $theb = hex2str($b->[0]);
$thea cmp $theb;
} @array;

View full thread Suchalgorithmus