"==" is a numeric operator ...
Try "eq"
Hope this helps ...
-----Original Message-----
From: Wagner [mailto:[EMAIL PROTECTED]]
Sent: September 20, 2001 10:18
To: [EMAIL PROTECTED]
Subject: aanother simple question
Hi,
I have another simple question:
In my script i have a variable $host that is a string... I'm trying to do a
conditional like this:
if ($host == 'access_1') {
$host1 = 'ACESSO 1' ;}
elsif ($host == 'access_2') {
$host1 = 'ACESSO 2' ;}
The problem is that $host1 aways get the first valur (ACCESSO 1) even if its
value is access_2...
I may be doing some mistake in the if line....
Thanks,
Wagner
--
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]