Thread Array teilen (9 answers)
Opened by rosti at 2011-07-14 17:40

pq
 2011-07-14 17:46
#150367 #150367
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
Code (perl): (dl )
1
2
3
4
my @new;
while (@old) {
    push @new, [splice @old, 0, 3];
}
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Array teilen