....

eq: to use for the strings
= : to use in numeric contest.(if you = in string contest in every true).

If you don't know if are string or numerical use eq

    Walter

> Hello,
>
> I have a small question: what's the difference between == and eq?
>
> When I do:
>
> if ( $menuitem == "modify_router") {
>         print "Modify router<br>";
> } else {
>         print "Add router<br>";
> }
>
> it doesn't work. But when I change it to:
>
> if ( $menuitem eq "modify_router") {
> ....
>
> It works!
> How comes?
>




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to