my %hash = ( 'key' => [\%foobar, 1] ); my $hashref = \$hash{key}; print 1 if exists $hashref;