in reply to Vector of given size
use warnings; use strict; my $length = 10; my @vec = (0) x $length; $_ += 1 for @vec; print "@vec\n"; [download]