Allow upper case A-F in Hex numbers

This commit is contained in:
Tom Eastep 2009-05-05 16:23:37 -07:00
parent df42a82b01
commit 2125f3140f

View File

@ -756,7 +756,7 @@ sub numeric_value1 ( $ ) {
sub hex_value( $ ) {
my $val = lc $_[0];
return undef unless $val =~ /^[a-f0-9]+$/;
return undef unless $val =~ /^[a-fA-F0-9]+$/;
no warnings;
oct '0x' . $val;
use warnings;