Perl 中是否发生了某些变化,或者一直都是这样,第二个 ( $number eq 'a'
) 之类的示例不会引发警告?
#!/usr/bin/env perl
use warnings;
use 5.12.0;
my $string = 'l';
if ($string == 0) {};
my $number = 1;
if ($number eq 'a') {};
# Argument "l" isn't numeric in numeric eq (==) at ./perl.pl line 6.