in reply to array of arrays
You can then reference the internal arrays as you would any multidimensional array.@list = qw(this that and another); @array = ([@list], [1, 2, 3]); #value of $array[0][2] is now 'that'
is doing it in list mode.@array
is fetching it as a reference. Keep in mind that that \@array is only a shallow copy- modifying the value in a dereferenced context will modify @array itself, where as modifying the value of [@array] will keep @array untouched.[@array] \@array
|
|---|