Easy one :)
You need to use the "eq" and "ne" comparitors rather than "==" and "!="
when comparing string values.
If you use "!=" and "==" as you are doing, you are comparing the numeric
values, which for any string which doesn't contain numerals, will be zero.
So yes, in perl, "man"=="woman". But "man" ne "woman", if that makes
sense.
Andrew
--------------------------------------------------------------------
http://www.lug.org.uk http://www.linuxportal.co.uk
http://www.linuxjob.co.uk http://www.linuxshop.co.uk
--------------------------------------------------------------------