> 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;
Better (maybe):
my %this = (
x => 1,
y => 2,
z => 3,
Z => 4,
)
push @list, %this;
> The las
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
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}