in reply to Adding values to a hash of hashes

Are you sure that $authors{$from} near the end is a hash ref? I believe you should play with Data::Dumper or the debugger to inspect how the %authors hash looks like.