in reply to adding elements to already exisiting elements in an array
push @{$Elements[$l]}, $anticipation;
That puts a reference to an anonymous array in $Elements[$l] which you add values to using push(). Then later you can access the values an index like:
my @values = @{$Elements[$l]};
-sam
|
|---|