Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Parsing hashes with variable structure

by frozenwithjoy (Priest)
on Nov 09, 2012 at 00:40 UTC ( #1003037=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if( exists $xml->{$usernumber}->{"user"}->{"firstname"} ) {...}
    
  2. or download this
    if( ref eq 'HASH' and exists $xml->{$usernumber}->{"user"}->{"firstnam
    +e"} ) {...}
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003037]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2016-12-10 00:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (158 votes). Check out past polls.