Use == instead of eq for integer comparisons
The eq operator does a stringwise comparison, but the values being compared are integers. See-also: https://metacpan.org/pod/perlop#Equality-Operators
Loading
Please register or sign in to comment
The eq operator does a stringwise comparison, but the values being compared are integers. See-also: https://metacpan.org/pod/perlop#Equality-Operators