Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: can I change hash keys or values directly

by GrandFather (Saint)
on Jan 28, 2021 at 21:33 UTC ( #11127606=note: print w/replies, xml ) Need Help??

in reply to can I change hash keys or values directly

Without digging into the perl code I can't be sure (although it's likely someone will know for sure), but that isn't really how a hash works. In any implementation I'm aware of there is no explicit list of key values and any equivalent of an in place edit of the keys would require about as much work under the hood as your slice/delete approach. See Hash_table to get an idea of what is going on under the hood.

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
  • Comment on Re: can I change hash keys or values directly

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2021-04-15 02:20 GMT
Find Nodes?
    Voting Booth?

    No recent polls found