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


in reply to Re: scanning hash
in thread scanning hash

This code is incorrect. It will treat undefs and empty strings as the same.

Makeshifts last the longest.

Replies are listed 'Best First'.
Re^3: scanning hash
by ambrus (Abbot) on Aug 01, 2004 at 15:15 UTC

    Undefs and empty strings are equal. The OP wanted to check if all values are equal.

      Oh dear. Next thing we will argue about whether the equality of two values can be determined by the equality of their string representations. :-)

      Makeshifts last the longest.

        (puzzled) If you really want...I'll start us off.

        You can't determine the equality of two values from the equality of their string representations.