Thread Array mit Werten auffüllen
(16 answers)
Opened by sebi85 at 2010-12-14 11:41
Aus der Hüfte ungetestet:
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 my @add; for my $arr (@tmp_container) { if(@{$arr->[0]}>2) { my @val1=@{$arr->[0]}; my @val2=@{$arr->[1]}; @add=[\@val1,\@val2]; } else { unshift(@{$arr},@add); } } Last edited: 2010-12-14 12:16:02 +0100 (CET) |