How about:
($num) = $string =~ /\bMTV\s*=\s*(0x[0-9a-fA-F]+)/; die("Bad Input!") unless defined $num; print("Found $num (", hex($num), " in decimal)\n");
In reply to Re: Parsing of a string
by ikegami
in thread Parsing of a string
by Aaryan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |