No, eq is for string comparison, which definitely wouldn't work here. In Perl == does numeric comparison.
See perlop.
You may be thinking of (korn) shell where it's the other way round.
In reply to Re^2: problem with variables
by muntfish
in thread problem with variables
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |