in reply to Missing Hash Keys When Hash Created in Sub

Perl hashes can't contain duplicate keys.

Dum Spiro Spero
  • Comment on Re: Missing Hash Keys When Hash Created in Sub

Replies are listed 'Best First'.
Re^2: Missing Hash Keys When Hash Created in Sub
by MidLifeXis (Monsignor) on Feb 23, 2015 at 21:26 UTC

    It appears from the commentary that the OP understands the behavior of duplicate keys in a hash. The behavior that is being seen is that the first and last key appear (at least when I run it) to disappear.

    --MidLifeXis

      I get the exact same (correct) results running in 5.8.8 for aix and 5.20.1 for Windows.

      Dum Spiro Spero

        See my other post for more details.

        --MidLifeXis

        It looks like a bug in the version (5.8.5) that I'm running. Thanks for checking!
      This is correct.