Richard Nuttall wrote:
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);
This coupling makes me nervous. A number is a number: its value is not
effected by its representation.
I can see that, in some scripts, it might be useful to define a
Dave Whipp writes:
Richard Nuttall wrote:
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);
This coupling makes me nervous. A number is a number: its value is not
effected by its representation.
I can see that, in
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