in reply to Problem parsing SOAP::SOM result of SOAP::Lite client Query - Not a HASH reference
I didn't look at the whole problem, sorry. But if you want to react in your code to changing structures at runtime you can use the possiblilies of introspection:
if(ref $somthing && ref $something eq 'HASH') { # iterate over keys } elsif (ref $somthing && ref $something eq 'ARRAY') { # iterate over list } else { # do whatever you want }
I hope it's an idea to help yourself
Best regards
McA
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem parsing SOAP::SOM result of SOAP::Lite client Query - Not a HASH reference
by Anonymous Monk on Sep 27, 2012 at 13:14 UTC |