Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: can I change hash keys or values directly

by GrandFather (Saint)
on Jan 28, 2021 at 21:33 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-25 12:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found