in reply to Change array to tiered hashref - brain teaser

By using Data::Diver
DiveVal($href, map \$_, @$aref) = 1;

Update: The advantage of this method is that it doesn't destroy the previous contents of $href.

Replies are listed 'Best First'.
Re^2: Change array to tiered hashref - brain teaser
by jonathan415 (Novice) on Aug 08, 2008 at 07:04 UTC
    Thanks for data::diver. It does work, and is simple to use. I like trying to solve things without modules if possible because you learn more that way.