I have an array, @allinfogoals and I want to make this a multidimensional array. In attempt to accomplish this, I'm trying to push an array as an item like so:
push @allinfogoals, ($tempcomponents[0], $tempcomponents[1], $singlehometeam);
Where those items in the array parenthesis are all individual strings I have beforehand. However, if I reference $allinfogoals[0], I get the value of $tempcomponents[0] and if I try $allinfogoals[0][0] I get:
Can't use string ("val of $tempcomponents[0]") as an ARRAY ref while "strict refs" in use
How can I add these arrays to @allinfogoals to make it a multidimensional array?