Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: Why are my hash keys undefined?by choroba (Cardinal) |
on Feb 08, 2016 at 17:46 UTC ( [id://1154654]=note: print w/replies, xml ) | Need Help?? |
Windows line endings, then? The keys aren't empty, but contain "\r" at the end. When printed, the character moves the cursor to the beginning of the line, and the value then overwrites the key. Convert your files to the *nix format using dos2unix or fromdos, or apply to your input lines.
In Section
Seekers of Perl Wisdom
|
|