in reply to why are hex values not numbers?
Here are 2 options. I favour the former.
#!/usr/bin/env perl use strict; use warnings; printf 'dec(%d) hex(%x)', 65, 0x41; print "\n"; printf 'dec(%d) hex(%x)', "65", eval "0x41"; print "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: why are hex values not numbers?
by perl-diddler (Chaplain) on Sep 26, 2016 at 21:43 UTC | |
by hippo (Archbishop) on Sep 26, 2016 at 21:49 UTC | |
by perl-diddler (Chaplain) on Sep 27, 2016 at 06:37 UTC | |
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 | |
|