My perl script works on one mechanic but fail in another.
I using perl debugger to debug it by add "-d" in command. i.e. "perl -d my_perl.pl". Then I found that all "integer comparison" only works for TRUE result.
e.g. If I enter debug command
"x (1==1)"
it returns '1' (TRUE). But If I enter debug command
"x (1!=1)"
it returns '' (nothing, the result is expected to be 0(FALSE)).
BTW, the string comparison is the same. x "s" eq "s" return '1' and x "s" eq "s" return ''.
I using perl v5.14.2 (getting by perl -v). What's the problem of my perl? How can I fix it?