http://www.perlmonks.org?node_id=950234


in reply to Treating sub output as a hash

Is there a way to avoid defining %t, and make the code more compact?
print keys %{{a}};
a() returns a list. The inner {} make a hashref, and the outer %{} dereferences this hashref.