Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: ne vs. ! eqby haukex (Archbishop) |
on Feb 25, 2020 at 13:38 UTC ( [id://11113401]=note: print w/replies, xml ) | Need Help?? |
Precedence. See perlop: ! $s1 eq $s2 is the same as (!$s1) eq $s2, and not !( $s1 eq $s2 ), as B::Deparse will tell you:
You'll need to write either if ( !( $s1 eq $s2 ) ), if ( not $s1 eq $s2 ), unless ( $s1 eq $s2 ), or of course if ( $s1 ne $s2 ).
In Section
Seekers of Perl Wisdom
|
|