Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: examining HASH(0x1234567) in Debugger

by Marshall (Canon)
on Jan 04, 2020 at 11:35 UTC ( [id://11110946]=note: print w/replies, xml ) Need Help??


in reply to examining HASH(0x1234567) in Debugger

From what I see, @goodRefDes is an array of references to hash...

Is source code something like this? I'm not sure?:

my @gravity_hashrefs = grep {$_->{CHIPS_PART_NAME}=~/gravity/i} @goodR +efDes;
Why not add into the source code:
 use Data::Dumper; at the beginnging of the code?

Then add
 print Dumper \@gravity_hashrefs;?

It is possible to add extra statements into a grep{}.
I think this would work....

grep { if ($_->{CHIPS_PART_NAME}=~/gravity/i) { print Dumper $_; 1; } else { 0; } } @goodRefDes;
I am unsure why there is so much fascination with the Debugger when it is so easy to add print statements into Perl and compile and run the result at rocket speed. I seldom need the debugger even when writing "raw" C.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-03-28 09:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found