The "dec" isn't needed. That conversion happens without the explicit 'dec'.
That's why I compared it against the shell equivalent, that makes no such differentiation. Perl *does* accept both decimal and hex outside of quotes, so why is the eval needed for hex numbers from strings? Seems a bit odd for a computer language.
In reply to Re^2: why are hex values not numbers?
by perl-diddler
in thread why are hex values not numbers?
by perl-diddler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |