in reply to Adding cols to 3d arrays - syntax
Hi, first off, your life would be easier if you used hashes for nested data.
With
you are adding a scalar value to your sub-array. Then later you try to push to it as if it were itself an array.push @{ $myarr[$lpn] }, $ppn;
Probably changing the above line to
would get you on the right track.$myarr{$lpn}{$ppn} = ();
Hope this helps!
|
|---|