Re: [perl #128543] [BUG] Str.Int inconsistent about spaces on empty string

2016-07-05 Thread Lloyd Fournier
err now that I actually check with warnings it seems I'm wrong and "" " " both give the same warning. perl -E 'use warnings; use strict; say 1 + ""' Argument "" isn't numeric in addition (+) at -e line 1. 1 perl -E 'use warnings; use strict; say 1 + " "' Argument " " isn't numeric in addition (+)

Re: [perl #128543] [BUG] Str.Int inconsistent about spaces on empty string

2016-07-05 Thread Lloyd Fournier
I think this is to be consistent with p5. perl -E 'say "" + 1' #-> 1 I'm not really making an argument it should be this way. But that's probably the reason. On Wed, Jul 6, 2016 at 2:13 AM Zefram wrote: > # New Ticket Created by Zefram > # Please include the string: [perl #128543] > # in the

[perl #128543] [BUG] Str.Int inconsistent about spaces on empty string

2016-07-05 Thread via RT
# New Ticket Created by Zefram # Please include the string: [perl #128543] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128543 > Is it permitted to have no digits at all when coercing a Str to Int? The behaviour is inconsist