No such thing as a small change | |
PerlMonks |
Re: How to convert hash keys to utf8by hexcoder (Curate) |
on Sep 23, 2021 at 09:35 UTC ( [id://11136963]=note: print w/replies, xml ) | Need Help?? |
I interpret your question as "how do i change the hash key in a hash?"
If you can change the original hash, I suggest this code snippet, which deletes entries with the non-utf8 keys and reuses the values for the utf8-version key.
In Section
Seekers of Perl Wisdom
|
|