Re: Need help with Data Structure: array of hash

2012-11-22 Thread Justin Allegakoen
On 23 November 2012 08:23, Daniel Burgaud wrote: > Hi All, > > I am having problem with array and Hash data structure. Example is show > below: > > #CODE 1 > my @list; > my %this; > $this{x} = 1; > $this{y} = 2; > $this{z} = 3; > $this{Z} = 4; > push @list, %this; > > My intention above is to hav

Need help with Data Structure: array of hash

2012-11-22 Thread Daniel Burgaud
Hi All, I am having problem with array and Hash data structure. Example is show below: #CODE 1 my @list; my %this; $this{x} = 1; $this{y} = 2; $this{z} = 3; $this{Z} = 4; push @list, %this; My intention above is to have variable @list as an array of hash, ie: $list[0]{x} $list[0]{y} $list[0]{z}