[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: automake-1.17 fails with latest Perl (5.41.8) - Possible precedence
From: |
Collin Funk |
Subject: |
Re: automake-1.17 fails with latest Perl (5.41.8) - Possible precedence problem between ! and numeric eq (==) |
Date: |
Wed, 29 Jan 2025 19:16:18 -0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Igor Todorovski <itodorov@ca.ibm.com> writes:
> This is the relevant code:
>
> return (!!$val == $neg) ? '##%' : '';
I've attached a patch that fixes this by quoting $val and the '!'
operators.
Maybe Automake shouldn't use:
use warnings FATAL => 'all';
As was mentioned in the GitHub thread you linked and Perl's
documentation [1].
For cases like this, where the interpreter warns about code it finds
"problematic", but works as the programmer expected.
Collin
[1] https://perldoc.perl.org/warnings#Fatal-Warnings
0001-automake-fix-error-when-using-Perl-5.41.patch
Description: Text Data