I have strict warnings and warnings, but he continues to complain about the initialization of the following line:
$hash{$key} = ($row, [], [], [], '');
He warns of this separate line:
"Useless use of private variable in void context" "Useless use of anonymous list ([]) in void context" (3 times)
I fill in the data later, but I want indexes 1, 2, 3 to be arrays references, and index 4 to be a string. I review and fill out the following data:
$hash{$key}->[1]->[3] = 'Data'; $hash{$key}->[4] = $hash{$key}->[4] . 'More Data';
Obviously, I am doing something wrong, but I'm not quite sure how to do it right. (In addition, I know that this last line is redundant, can it be better summarized as well?)
source share