in reply to Re: why are hex values not numbers?
in thread why are hex values not numbers?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: why are hex values not numbers?
by hippo (Archbishop) on Sep 26, 2016 at 21:49 UTC | |
by perl-diddler (Chaplain) on Sep 27, 2016 at 06:37 UTC | |
|
Re^3: why are hex values not numbers?
by BrowserUk (Patriarch) on Sep 27, 2016 at 00:02 UTC | |
by perl-diddler (Chaplain) on Sep 27, 2016 at 06:34 UTC | |
by BrowserUk (Patriarch) on Sep 27, 2016 at 07:00 UTC | |
by perl-diddler (Chaplain) on Sep 27, 2016 at 12:10 UTC | |
by hippo (Archbishop) on Sep 27, 2016 at 12:21 UTC | |
| |
by BrowserUk (Patriarch) on Sep 27, 2016 at 12:33 UTC | |
|