0x00ff # hex value ff
'0x00ff' # integer value 0, with trailing 'x00ff'

I think ways to solve this should be open to discussion. Hopefully Luke can give us some proposals, since he's writing that part.

The behavior described there should stay. If you want literal-like
interpretations of strings, use the C<oct> function. The name of that
function should probably be changed to something more appropriate.

C<lit>, C<literal>, C<num> (ambiguous?), C<base>, etc.?

Luke

How about

my $a = 256:192.169.34.76;
my $b = $a.base(10);
my $c = '34:13.23.0.1.23.45'.base(16);

Or :

my $a = 256:192.169.34.76;
my $b = 10:$a;
my $c = 16:'34:13.23.0.1.23.45';

How would that work with
print "10:$a";
Would that have to be printf(...%r...) as mentioned elsewhere ?

R.

--
Richard Nuttall
Invisible Networks
Tel: 01954 200002
DDI: 01954 206361
Mob: 07798 528923
Fax: 01954 206360
Web: www.invisible.uk.net



Reply via email to