evalEmpire / perl5i

A single module to fix as much of Perl 5 as possible in one go
http://search.cpan.org/perldoc?perl5i
Other
156 stars 42 forks source link

removed hash ordering assumptions in flip.t #262

Closed chuckadams closed 11 years ago

chuckadams commented 11 years ago

I can't imagine flipping a hash with duplicate values ever really had a well-defined result in older perl versions, but the result is much more random in 5.18. I simply deleted the repeated 'bar' value in the test hash so all the values are unique, resulting in unique keys in the flipped hash.