go ahead... be a heretic | |
PerlMonks |
Re^3: print hash of hashes with a referenceby broomduster (Priest) |
on Aug 16, 2008 at 21:24 UTC ( [id://704747]=note: print w/replies, xml ) | Need Help?? |
Notice that the second level keys have whitespace at the end, and notice that your print statement uses a key of cmd (no whitespace). You should trim the whitespace when you construct the hash.
You should also take notice here that the values have \n (and possibly other whitespace) at the end (which may also bite you, depending on how you intend to use them).
In Section
Seekers of Perl Wisdom
|
|