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)
In reply to why are hex values not numbers? by perl-diddler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |