[Would you please stop top-posting?]
[Would you please stop blindly full-quoting?]
Gary said:
That's what i mean $blah ne $blah does not always return false. I must
say that $blah ne $blah1 is a better description I wish I still had
Well, there is quite a difference between comparing the same variable and
comparing two different variables, don't you think? Would have been nice not
to misslead everyone :-(
some of the code that gave me these errors but i have come accross it
a couple of times. Say i've got this,
$blah = "123";
$blah1 = "1234";
if ($blah ne $blah1) {
print "They are not equal";
}
I know this works
Please define "works".
but sometimes when the values are different it
doesn't always reconise they are not equal.
Ah, finally a statement with some meat on it.
So you are claiming that the operator 'ne' yields the wrong result in some
circumstances. Is that correct?
Well, you know, may I quote from
http://www.catb.org/~esr/faqs/smart-questions.html:
<quote>
Q:. My program doesn't work. I think system facility X is broken.
A:. While it is possible that you are the first person to notice an
obvious deficiency in system calls and libraries heavily used by hundreds or
thousands of people, it is rather more likely that you are utterly clueless.
Extraordinary claims require extraordinary evidence; when you make a claim
like this one, you must back it up with clear and exhaustive documentation
of the failure case.
This message is probably useless without a real example.
I would agree!
When I come
accross it again i'll post it up. I was just wondering if anyone else
had seen this problem.
A wild guess:
In your example $blah and $blah1 are numbers, but you elected to denote and
compare them as strings.
If that is the style in which you usually write your programs, then I wonder
if maybe you ran into a 'perldoc -q 999' problem.
jue