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


in reply to Not a hash reference... why?

I prefer to use the debugger when I need to inspect data structures. The x command is excellent for this. It can inspect arrays, hashes as well as objects. You can then use the p command to print out your references and check whether they are fine.

perldebug