# this is not really correct: my @array = [0,1,2,3,4,5]; # use this: my $array = [(0,1,2,3,4,5)]; # or this: my @array = (0,1,2,3,4,5);