# my @funcArr = 0; my @funcArr= (); #this is how an array can be initialized to be empty foreach my $line (@funcArray) { # @funcArray /= 2; $line/= 2; #$line is aliased to each value of the array in the loop push(@funcArr,$line); }