http://www.perlmonks.org?node_id=996224


in reply to Re^5: Parsing SOAP::Lite results
in thread Parsing SOAP::Lite results

That worked great. I had tried some  if (ref($location_ref) eq 'ARRAY') {...} elsif (ref($location_ref) eq 'HASH') {...} and just changed the @$ to a %$ and was getting a 'Can't use string ... strict refs' error. Glad you returned with the better way to do it.

Can you tell me what's happening here?

my $location_array_ref = ref($location_ref) eq 'ARRAY' ? $location_ref : [ $location_ +ref ];

Thank you very much!