No, I didn't give oct a valid hex number, I gave it an invalid octal number which could have been understood as an otherwise valid decimal number. I had not previously considered that oct() would consume a hex number but since it is implemented using a function shared with hex, I suppose that makes sense.
perl -wle 'print oct "108"' Illegal octal digit '8' ignored at -e line 1. 8
In reply to Re^2: A philosophical pondering concerning hexes
by diotalevi
in thread A philosophical pondering concerning hexes
by Llew_Llaw_Gyffes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |