Let's say you have the following data structure.
[CODE=perl]$VAR1 = {
'xxx' => {
'xxx' => {
'xxx' => [
'xxx',
'xxx',
'xxx',
'xxx',
'xxx'
]
}
}
};[/CODE]
Say you want to access the array portion, is there a more elegant way of accessing the array data?
[CODE=perl]$product_data{$ category}->{$sub_category }->{$product_name }[0];[/CODE]
--Kevin
[CODE=perl]$VAR1 = {
'xxx' => {
'xxx' => {
'xxx' => [
'xxx',
'xxx',
'xxx',
'xxx',
'xxx'
]
}
}
};[/CODE]
Say you want to access the array portion, is there a more elegant way of accessing the array data?
[CODE=perl]$product_data{$ category}->{$sub_category }->{$product_name }[0];[/CODE]
--Kevin
Comment