$foo{bar}{baz}; # Assumes $foo{bar} exists and is a hash print ref($foo{bar}); # And lo and behold, it is!