On 2020-05-31 15:45:11 +, Debian Bug Tracking System wrote:
> Unary plus has no effect, so the result is a bareword that is illegal
> under "strict subs". Unary minus turns the bareword into a string with
> "-" prepended. This is no longer a bareword, and hence legal under
> "strict subs".
A
On 2019-07-04 16:57:22 +0300, Niko Tyni wrote:
> and the following passage in perlop:
>
> Unary "-" performs arithmetic negation if the operand is numeric,
> including any string that looks like a number. If the operand is an
> identifier, a string consisting of a minus sign concatenat
On Thu, Jul 04, 2019 at 02:10:22PM +0200, Vincent Lefevre wrote:
> Package: perl
> Version: 5.28.1-6
> Severity: normal
>
> The following does no yield any error:
>
> perl -e 'use strict; my $x = - Inf;'
>
> This does not seem to be intended.
Inf is not special here, other strings behave simi
Package: perl
Version: 5.28.1-6
Severity: normal
The following does no yield any error:
perl -e 'use strict; my $x = - Inf;'
This does not seem to be intended.
The strict(3perl) man page says:
"strict subs"
This disables the poetry optimization, generating a compile-time
erro
4 matches
Mail list logo