...(your lines 1 - 4)... for my $month(@month) { say $month; }