http://qs321.pair.com?node_id=1172666

perl-diddler has asked for the wisdom of the Perl Monks concerning the following question:

Why are hex values not interpreted as numbers:
printf "dec(%d) hex(%x)", "65", "0x41"; Argument "0x41" isn't numeric in printf at -e line 2. dec(65) hex(0) # vs. shell: > printf "dec(%d) hex(0x%08x)\n" "65" "0x41" dec(65) hex(0x00000041)

I know about hex, that doesn't explain why perl shouldn't be able to DWIM, no?

p.s. maybe the latest perl should allow "0x41"->$* ? (tongue-in-cheek)