Or since you know your string starts with 0x, you can eval it.
my $hex = '0x3cb37140'; my $num = eval $hex; # 1018392896
In reply to Re^2: convert hex string to hex number
by Narveson
in thread convert hex string to hex number
by zentara
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |