fetchall_arrayref returns an arrayref. And there's not much point in returning references to scalars here. So change get_db_entries' return to:
return($aoa,$nrows,$nfields);
Then your main routine could say something like:
print "\nnrows: $bighash{$day}{nrows}\n"; print "\nnfields: $bighash{$day}{nfields}\n"; print "aoa: $bighash{$day}{aoa}[$i][2] after\n";
It's the $aoa in $bighash{$day}->$aoa->[$i]->[2] that's causing the 'uninitialized value in method lookup' etc. errors.
It's $aoa instead of just aoa in your assignment in the foreach day loop that's causing the other error.
Finding these sorts of things is exactly why people advise including 'use warnings' so much.
Also, since your bighash is indexed by the digits 0-6, you could use a bigarray instead.
Updated: Explained better the causes of the stated problems.
In reply to Re: Passing Array of Array refs as a reference
by Zed_Lopez
in thread Passing Array of Array refs as a reference
by tdp05
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |