Thread sortieren (2 answers)
Opened by Froschpopo at 2006-02-24 19:20

Froschpopo
 2006-02-24 19:21
#63264 #63264
User since
2003-08-15
2653 Artikel
BenutzerIn
[default_avatar]
Einen Anfang hab ich schon gemacht:
Code: (dl )
1
2
3
4
5
6
7
8
my @args = ("name", 6, [[name1,alter], [name2, alter]]);
my $ref = \@args;

$ref->[2] = sort { $b->[0] cmp $a->[0] };

for (@{$ref->[2]})
  print $_->[0];
}
\n\n

<!--EDIT|Froschpopo|1140801896-->

View full thread sortieren