in reply to Anonymous array in object
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; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Anonymous array in object
by GGGav (Initiate) on Oct 23, 2008 at 12:28 UTC |