in reply to Ending up with duplicate keys in a hash?\

Can you verify there are no hidden characters in the hash keys?
#!/usr/bin/perl use warnings; use strict; use Data::Dumper; my %h = ( "Event" => 1, "Event\0" => 2, ); print Dumper \%h; # Oops! $Data::Dumper::Useqq = 1; print Dumper \%h;
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^2: Ending up with duplicate keys in a hash?\
by Anonymous Monk on Jan 10, 2016 at 15:52 UTC
      Yep Data::Dumper is a good library (thanks) :)

      But you can also use Data::Printer which can colored chars, limit the depth levels, set the indent size, multilines...
      There are a lot of options.

      https://metacpan.org/pod/Data::Printer

      Use p instead of print/say.
      p $href;