You have one anonymous array [-1, .... -1] for all objects.
If you will create an array inside new the error disappears
sub new { my $that = shift; my $class = ref($that) || $that; my $self = { __name => undef, __mpp => [ (-1) x 10 ] }; bless $self, $class; return $self; }
In reply to Re: Anonymous array in object
by ccn
in thread Anonymous array in object
by GGGav
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |