----- Original Message ----- From: "wim" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 06, 2002 8:39 AM Subject: Difference between == and eq
> Hello, > > I have a small question: what's the difference between == and eq? == is a numeric compare 1 == 1 eq is a stringwise compare a eq a see perlop for more... Shawn > > 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? > > -- > Kind regards, > > Wim De Hul > Belgacom Belbone > -------------------------------- > Mail : [EMAIL PROTECTED] > Mobile : +32 479 952004 > Ripe : WDH25-RIPE > Registered Linux User: #260015 > -------------------------------- > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]