foreach (@thescore) { print $_, "\n"; } #### foreach my $score (@thescore) { print $score, "\n"; }