http://qs1969.pair.com?node_id=11137726


in reply to dumper hash incorrect?

You have carriage return whitespace at the end of your input, most likely because your input file is formatted with "Windows" newlines, that is \r\n.

Data::Dumper will show you that whitespace when you set $Data::Dumper::Useqq = 1.

Personally, I like to, instead of chomp, use s!\s+$!!, to remove all kinds of whitespace at the end of input lines.