in reply to Array of Array Row Reference
If you want to change the element 6/3 to 8, just writemy $element = $matrix[0]->[4]; # or by shorthand: my $element2 = $matrix[0][4];
If you want go get the whole row number 6:$matrix[6]->[3] = 8; # or the same shorthand as above
If you want to print this array formatted, you could also do the following:my @row6 = @{ $matrix[6] }; # to a list my $listRef6 = $matrix[6]; # to a listreference
Further information gives you: perldoc perllolforeach my $row (@matrix) { print join ("\t", @$row); }
Best regards,
perl -le "s==*F=e=>y~\*martinF~stronat~=>s~[^\w]~~g=>chop,print"
|
|---|