The stupid question is the question not asked | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
It looks like you're on the right track here - walk the list of keys producing a new hash with corrected keys, recursing when you encounter a hash-ref.
Your downfall is your lack of: use strict; That's why you didn't notice that you called the key $ckey but referred to it in a number of places as $key: if (ref($work_hash{$key}) eq "HASH") -sam In reply to Re: removing the spaces from keys of a complex hash
by samtregar
|
|