Use 'eq' for string comparisons and '==' for numerical --
- Dwalu
.peace
--
I am an important person in this world -
Now is the most important time in my life -
My mistakes are my best teachers -
So I will be fearless.
- Student Creed
On Thu, 20 Sep 2001, Wagner wrote:
=>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]