M
Mafj
Hi,
I am a complete beginner I tried to find some information on the
topic, however, I have only found how to deal with arrays and
associative arrays. All documentation seems to be helpless with an
object/structure.
I have a fixed structure like this (comes from external file):
$self->{data} = {
'ver' => 2,
'list' => {
'name1' => 'item1',
'different_name' => 'another_item',
'whatever' => 'special_item',
# and 1000 more
}
};
I need a content of $self->{data}->{list}. I do knot know field names
nor keys.
There is probably some simple loop, foreach or while,e.g.
( ($c,$v) = each %self->{data}->{list} ).
But I cannot figure out the details that would finally let it work.
Help...
I am a complete beginner I tried to find some information on the
topic, however, I have only found how to deal with arrays and
associative arrays. All documentation seems to be helpless with an
object/structure.
I have a fixed structure like this (comes from external file):
$self->{data} = {
'ver' => 2,
'list' => {
'name1' => 'item1',
'different_name' => 'another_item',
'whatever' => 'special_item',
# and 1000 more
}
};
I need a content of $self->{data}->{list}. I do knot know field names
nor keys.
There is probably some simple loop, foreach or while,e.g.
( ($c,$v) = each %self->{data}->{list} ).
But I cannot figure out the details that would finally let it work.
Help...