Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: examining HASH(0x1234567) in Debugger

by LanX (Saint)
on Jan 01, 2020 at 15:37 UTC ( [id://11110835]=note: print w/replies, xml ) Need Help??


in reply to examining HASH(0x1234567) in Debugger

Are you sure your initial example is returning hash refs?

I'm surprised because x dives into nested structures.

Looks for me like you are only returning stringifications of hash refs instead.

update

Please ignore...

I wasn't aware about the maxdepth option when using x ...

from perldebug#Debugger-Commands

  • x [maxdepth] expr
If the maxdepth is included, it must be a numeral N; the value is dumped only N levels deep, as if the dumpDepth option had been temporarily set to N.

... since the internal help doesn't show it

DB<79> h x x expr Evals expression in list context, dumps the result.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11110835]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-25 21:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found