|Welcome to the Monastery|
This is a useless nodeby shagbark (Acolyte)
|on Apr 25, 2018 at 02:37 UTC||Need Help??|
shagbark has asked for the wisdom of the Perl Monks concerning the following question:
Hash slice from a hashref, into a hashref
ARGH. I want to delete this node; I just realized the question is useless. But I can't figure out how to delete it.
There's another question titled "Re: Hash slice from a hashref". However, it's actually asking for a slice of the values of a hash ref. I want a slice of an actual hash. Like this:
But I want to load the slice directly into a hashref, not a hash, because my %h is really big and I don't have enough RAM to make a copy of it. I want to do what you might think this would do:
Or maybe one of these:
Alas, none of these work. Is there a way to get a slice of a hash (not of its values, but of the hash) without making a copy of the hash? Preferably from a hashref to the original hash, since that's what I've got.
I asked a question, then realized that there was no point in asking what I was asking.
So I have deleted it.
Perlmonks.org does not allow deletion of nodes, so here we are.