in reply to Re^6: Problems with Hash Keys and Spaces
in thread Problems with Hash Keys and Spaces
Did the data in the array originate on Windows, and you chomped it? That would leave a chr 13 at the end of the string. Add
$Data::Dumper::Useqq = 1;
Just before the print Dumper.... If, as I suspect, it shows that $temp[1] really contains "Test MMA\r", you can use
$temp[1] =~ s/\r//;
to cleanse it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Problems with Hash Keys and Spaces
by ZimCS (Novice) on Aug 12, 2008 at 15:04 UTC | |
by ZimCS (Novice) on Aug 12, 2008 at 16:18 UTC | |
by FunkyMonk (Bishop) on Aug 12, 2008 at 17:01 UTC |