I have a perl variable like this. How can i access the inlying properties (like '706')?
my @config = [
{
'x' => [ 565, 706 ],
'y' => [ 122 ],
'z' => 34,
'za' => 59,
}
];
EDIT: print Dumper($config[0]);
yields : $VAR1 = undef;
Looks like i get acces using $config[0][0]->{x}[1];
. Why do i have to use [0][0] (one is clear, but he ssecond...)?
EDIT2: I am sorry for changing the data structure, but the definition which was given to me changed.
[EDIT: Follow the shifting problem definition.]
Given:
Then this will do it:
understanding of course that that is merely syntactic sugar for:
and that that is just syntactic sugar for:
which in turn is just syntactic sugar for:
which again is syntactic sugar for:
and that, of course, is equivalent to: