I am using the debugger to look at a complicated data structure
The use of grep and map are very helpful to limit and find what I want
But then I want to dive in just to examine one of the Hash References returned from this grep command:
DB<63> x 1 grep {$_->{CHIPS_PART_NAME}=~/gravity/i} @goodRefDes
0 HASH(0xe4db284)
1 HASH(0xe55199c)
2 HASH(0xdad56fc)
3 HASH(0xdf42dcc)
4 HASH(0xe0b0f3c)
5 HASH(0xde3a554)
6 HASH(0xdd0ba44)
7 HASH(0xdb3c934)
8 HASH(0xe169014)
9 HASH(0xdfd6564)
10 HASH(0xdc1accc)
11 HASH(0xdef3684)
12 HASH(0xe4265f4)
13 HASH(0xdd6d7f4)
But I was hoping there might be a builtin way to do this in the actual debugger.
Is there some way to pass the HASH(0xe3867b4) straight to the debugger x command?
I Looked at the wisdom posted in How to turn "HASH(0x1234567)" into a real HASH
so I tried this: which is what I think I learned from the wisdom that I did not fully follow:
but I get the method not found error
DB<70> $a=hex e3867b4
DB<71> x $a
0 238577588
DB<72> my $hash = bless(\(0+$a), "B::AV")->object_2svref;
Can't locate object method "object_2svref" via package "B::AV" at (eva
+l 50)[d:/Perl/lib/perl5db.pl:737] line 2.
Can anyone make any suggestions?