in reply to Howto load list context into hash of hashes?

$REPO_HASH {$gqueried_repo} {REPO_BRANCHES} = @branch_list ; # Does not do what you apparently think it does # The result of the assignment above is the number of elements in @b +ranch_list
What I think you meant:
$REPO_HASH {$gqueried_repo} {REPO_BRANCHES} = \@branch_list; #Note: Added "\", which makes it a REF to the array
You can unwind the HOHOA using:
for my $k (@{ $REPO_HASH {$gqueried_repo} {REPO_BRANCHES} }){ # Process one item of the array in $k }

            "XML is like violence: if it doesn't solve your problem, use more."

Replies are listed 'Best First'.
Re^2: Howto load list context into hash of hashes?
by dt98 (Initiate) on Nov 23, 2011 at 20:54 UTC

    You hit it right the head! I'd already tried the "\@branch_list" but I couldn't get get the "unwind" part down. I can finally move forward without having to redesign the script. Thanks a million!!