boumenot/p5-Net-Amazon — pull request #4 by fayland (2013-05-07 03:02:28+00:00)
Title: make BrowseNode force array too

sample XML returned as

'xmlref' => {
'SalesRank' => '94244',
'ASIN' => 'B003F80IME',
'ItemAttributes' => {},
'SimilarProducts' => {
'SimilarProduct' => []
},
'BrowseNodes' => {
'BrowseNode' => {
'BrowseNodeId' => '166099011',
'Ancestors' => {
'BrowseNode' => {
'BrowseNodeId'

Note here BrowseNode returns {} since it has only one element.

and in Property.pm
if (ref $options{xmlref}->{BrowseNodes}->{BrowseNode} eq 'ARRAY') {

it will just ignore it.

Thanks.