explicit radix specifications for integers: 0123 - decimal 2:0110 - binary [also b:0110?] 8:123 - octal [also o:123?] 16:123 - hex [also h:123?] 256:192.168.1.0 - base 256 (...etc...)
Could this be used to do explicit conversion between bases, and/or strings, rather than using pack/unpack/sprintf, etc. ? my $macaddr = '00022D3F7659'; my $hex = 16:$macaddr; How about $a = 'DEADBEEF'; $hexres = 16:$a + 16:FEED; print ~16:$hexres; does that give me "DEAEBDDC" ? R. -- Richard Nuttall