I see what's causing my issue with the 'Not an ARRAY ref' error. When there is only one location it's not an array.
$VAR1 = { 'Toys' => bless( { 'Toy' => [ bless( { 'ToyLocations' => bless( { 'ToyLocation' => { 'toyQuantity' => '2', 'locationName' => 'toy +box' } }, 'ArrayOfToyLocation' ), 'color' => 'brown', 'toyName' => 'bear', 'size' => 'large' }, 'Stuffed' ), bless( { 'ToyLocations' => bless( { 'ToyLocation' => [ { 'toyQuantity' => '1', 'locationName' => 'toy +box' }, { 'toyQuantity' => '4', 'locationName' => 'she +lf' } ] }, 'ArrayOfToyLocation' ), 'color' => 'none', 'toyName' => 'Sorry', 'size' => 'medium' }, 'Board' ) ] }, 'ArrayOfToy' ) };
Still stuck on what to do in this case. Would this be where introspection comes in? pseudo:(if HASH, then ... %$location) elsif ARRAY, then ... @$location) ? Thanks to all who are helping me learn this!
In reply to Re^4: Parsing SOAP::Lite results
by Roboz
in thread Parsing SOAP::Lite results
by Roboz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |