Thread Auffüllen eines Arrays mit vielen gleichen Werten in schön...?
(4 answers)
Opened by Sven_123 at 2011-06-14 13:16 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 use strict ; use Data::Dumper ; my $was = '=' ; my $wieoft = 10 ; my @array_was_wieoft = ( ( $was ) x $wieoft ) ; print Dumper( \@array_was_wieoft ) ; Ganz einfach. Daniel Last edited: 2011-06-14 13:21:59 +0200 (CEST) |