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.
In reply to Re: dumper hash incorrect?
by Corion
in thread dumper hash incorrect?
by wolfie7873
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |