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


in reply to Re: Perl Array of Hashes
in thread Perl Array of Hashes

Hello, Thnaks a ton for all ur suggestions. I wanted to do little more here...
my $k=0,$str=""; for(my $i=0; $i<4;$i+=1) { @entry=undef; for my $j (0..7) { $h{"BUCK_$j"} = $bucket[$k+$j]; push @entry,\%h; } $hash_table[$i] = { ENTRY => [@entry]}; $k+=8; } #end of for i for(my $i=0; $i<4;$i+=1) { print "ENTRY-0-BUCK-0::", $hash_table[$i]->{ENTRY}->{BUCK_0}, "\n"; }
The print of "ENTRY-0-BUCK-0" doesnt work....what is that i am doing wrong here?