Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^2: How to convert hash keys to utf8

by mpersico (Monk)
on Sep 23, 2021 at 17:44 UTC ( #11136970=note: print w/replies, xml ) Need Help??

in reply to Re: How to convert hash keys to utf8
in thread How to convert hash keys to utf8

Interesting point. That's not what I did though. My solution was
$ref->{ utf8_on($key) } = $ref->{$key};
and yet, I did not double the size of the hash, as proven by tests I have written to count and enumerate the keys as received in Python from Perl. I believe that my code "works" without duplicating the keys because utf8_on is not changing or manipulating the actual string that is the key; all it is doing is manipulating the metadata.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11136970]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (2)
As of 2021-12-08 06:10 GMT
Find Nodes?
    Voting Booth?
    R or B?

    Results (34 votes). Check out past polls.