in reply to Re^2: Parsing hashes with variable structure
in thread Parsing hashes with variable structure
if( exists $xml->{$usernumber}->{"user"}->{"firstname"} ) {...}
EDIT: You may also need to extend it as such: (but it is difficult to tell for sure w/o seeing more context)
if( ref eq 'HASH' and exists $xml->{$usernumber}->{"user"}->{"firstnam +e"} ) {...}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Parsing hashes with variable structure
by SomeNoob (Initiate) on Nov 09, 2012 at 00:46 UTC |