http://www.perlmonks.org?node_id=1215072


in reply to [CLOSED] Dereference hash into hashes by key

And, gosh, if a tiny little few-line subroutine named replace_key() (hint, hint ...) makes your actual intention perfectly clear for everyone who will follow in your footsteps . . . what's a few extra source-lines between friends? In that tiny-subroutine you can delete the old key and insert a new one ... and do anything and everything else you like ... and your source-code now consists of only one line! (Woo, hoo!)
  • Comment on Re: [CLOSED] Dereference hash into hashes by key

Replies are listed 'Best First'.
Re^2: [CLOSED] Dereference hash into hashes by key
by Your Mother (Bishop) on May 23, 2018 at 05:17 UTC

    So, gosh, give your advice life. Show how the code would work. Write the sub and document the way it's called.

Re^2: [CLOSED] Dereference hash into hashes by key
by LanX (Archbishop) on May 22, 2018 at 23:43 UTC