in reply to Complex Data Structures in Object Creation
Now, from a design side this would look like :bless { some_scalar => "blah", another_scalar => "blah", some_array => [], an_array_of_arrays => [[1,2,3]["a","b","c"]], },$class
This is the anonymous array version. You were close with the ref version, with one change. you can do :$b = $object->{an_array_of_arrays}->[1][1]; # $b has "b"
Hope that helps.# old an_array_of_arrays => $ref_to_array1[$ref_to_array2], # new an_array_of_arrays => [$ref_to_array1,$ref_to_array2],
|
|---|