http://www.perlmonks.org?node_id=1025371


in reply to Re^2: How to check if a variable's value is equal to a member of a list of values
in thread How to check if a variable's value is equal to a member of a list of values

This is an interesting point. Do you know what value is taken for the hash key? The string representation or the floating point binary representation?

When the first is true than what you said falls in the whole class of floating point related problems, e.g. equality of floats.

McA

  • Comment on Re^3: How to check if a variable's value is equal to a member of a list of values

Replies are listed 'Best First'.
Re^4: How to check if a variable's value is equal to a member of a list of values
by BrowserUk (Patriarch) on Mar 25, 2013 at 20:01 UTC
    Do you know what value is taken for the hash key?

    Hash keys are always strings.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.