my %hash = ('8'=>"string eight", 8 =>'number 8'); print "hash key uses the stringified version of 8: $hash{'8'} or $hash{$numeric_eight}\n"; __END__ a 1 as string is:0001 a 1 as number is:1 1 is NOT eq 01 1 is == 01