in reply to Perl Lists and Arrays

my $list = (2,3,4,5,6);

... makes little sense to Perl and it tells you so. You can't assign a list to a scalar.