Thread spliten von mehrdimensionalem array (21 answers)
Opened by anou at 2010-10-28 19:59

anou
 2010-10-28 21:02
#142301 #142301
User since
2010-10-28
22 Artikel
BenutzerIn
[default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
9
foreach (@var) 
{
($name,$score) = split; # get score
$score{$_} = $score; # record it
}
print sort {
$score{$a} <=> $score{$b};
}
#@var;

View full thread spliten von mehrdimensionalem array