my @arr = ( -10, -5, -1, 0, 2, 6, 11 ); # mimicking to the OP code: for my $n ( @arr ) { print $n; } # being more detail-oriented: for my $n ( @arr ) { print "$n\n"; # include a newline after the value }