dt98 has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I'm tring to add a list to a fairly complicated hash of hashes data structure.
$REPO_HASH {$gqueried_repo} {REPO_BRANCHES} = @branch_list
@branch_list is a simple array that does contain valid info which can be displayed in a for loop.
When I try to print the the above hash I only the length of the array like:
Testing branch display=1
Using:
What I'm going with the Hash seems to be ok where similar to the following works fine for scalars:foreach my $k ($REPO_HASH {$gqueried_repo} {REPO_BRANCHES}) { print "Testing branch display=$k\n"; }
print RPTR "$REPO_HASH{$repository}{REPO_OWNER}. ";
I'm good with perl, but this is a little above me. Can anyone just suggest what I'm doing wrong plz...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Howto load list context into hash of hashes?
by NetWallah (Canon) on Nov 23, 2011 at 05:58 UTC | |
by dt98 (Initiate) on Nov 23, 2011 at 20:54 UTC | |
Re: Howto load list context into hash of hashes?
by TJPride (Pilgrim) on Nov 23, 2011 at 11:10 UTC | |
by NetWallah (Canon) on Nov 23, 2011 at 23:27 UTC | |
by TJPride (Pilgrim) on Nov 24, 2011 at 08:44 UTC |
Back to
Seekers of Perl Wisdom