Check out
The Perl Data Structures Cookbook and
perldoc perlreftut. Those will guide you to the answer you seek.
BTW, you might want to try something like:
push @{$day_output[$data[1]]}, [@data];
You can only push onto an array, and that will let you dereference the array reference
$day_output[$data[1]].