Why the handwork? Why aren't you using a regex?my $start = index($@, 'HASH(0x') + 7; my $end = index($@, ')', $start); my $hex = substr($@, $start, $end-$start);
my($hex) = $@ =~ /HASH\(0x(\w+)\)/;
In reply to Re: Re: Re: Extracting a hash reference from a string
by bart
in thread Extracting a hash reference from a string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |