Perl can do this for you: `push @years, ($year);`