I'm trying to use an array of arrays in a Perl object and am still not getting how it works.
Here is the constructor:
sub new {
my $class = shift;
my $self = {};
$self->{AoA} = [];
bless($self, $class);
return $self;
}
And here is the part of code which inserts stuff into AoA:
push (@{$self->{AoA}}[$row], $stuff);
I still can't find anything on the way to define an array of arrays in the constructor.