in reply to If a hash key is a reference...
use Tie::RefHash; tie %hash, "Tie::RefHash"; $hash{$somereference} = ...