in reply to Accessing hashes in main program from subroutine

I think you mean to say that $tData and $aData are references to hashes. Without seeing more of your code, you might try debugging using ref and Data::Dumper to make sure you have what you think you have.
use Data::Dumper; print Dumper(\$tdata);