On Jan 13, 2007, at 7:43 PM, xavier mas wrote:

Here's an example:
in (file, array and hash) contains: "woman, lion, ball"
img (file, array and hash) contains: "ball, dog, cat, lion".
dict (file, array and hash) contains: "house, man, woman, kid, kitchen, lion"


Comparing in with dict ans img, I'll expect as a result (all previous code is
between the while curly braces):
-1, 1
1, 1
1, -1
but the result is, instead:
-1, -1
-1, -1
-1, -1
that means never finds it.

I hope this is enough data.

It is better but not enough. The way you use hashes is apparently correct, so perhaps the problem comes from elsewhere. Please send self-contained, minimal code that reproduces the issue, not just an incomplete subset. Please turn strict and warnings on.

-- fxn




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to