I am looking for a solution in how to implement a hash array (with keys & values), and insert it (push it) into another hash array, in an uninstantiated element; for example:
$variable1 = {
0 => {
'Mathematics' => 82,
'Art' => 99,
'Literature' => 88
},
1 => {
'Mathematics' => 97,
'Literature' => 67
}
};
$variable2 = { 'Biology' => 47, 'Theology' => 87 };
...
Where the first variable1 index is iterated chronologically as a counter 0, 1, 2, 3 ... n
Therefore final variable1 should be...
$variable1 = {
0 => {
'Mathematics' => 82,
'Art' => 99,
'Literature' => 88
},
1 => {
'Mathematics' => 97,
'Literature' => 67
}
2 => {
'Biology' => 47,
'Theology' => 87
}
};