there are two different conditional statements in perl for two different situations.
when comparing numbers/integers perl use == (double equals),
while comparing strings perl use eq (echo-quebec as in -eq shell).
example:
$a=”abcde”;
if ($a eq “abcde” ){
print “var a is not empty\n”;
} else {
print “var a is empty\n”;
}
if (length($a) == 5 ){
print “var a has 5 chars\n”;
} else {
print “var a dont have 5 chars\n”;
}
AFAIK you cant exchange those operator or else it’ll always return true and your conditioning is no use. CMIIW.