in reply to Re: Re: Extracting a hash reference from a string
in thread Extracting a hash reference from a string

my $start = index($@, 'HASH(0x') + 7; my $end = index($@, ')', $start); my $hex = substr($@, $start, $end-$start);
Why the handwork? Why aren't you using a regex?
my($hex) = $@ =~ /HASH\(0x(\w+)\)/;