my $wall_height = 50; my $stripe = 11; my @stripe = map {$_ * $stripe} (1..int($wall_height/$stripe)); print "@stripe"; =prints 11 22 33 44 =cut
In reply to Re: Building an array, "stripes on a wall"
by wind
in thread Building an array, "stripes on a wall"
by redmustang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |