Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Parsing hashes with variable structure

by frozenwithjoy (Curate)
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (17)
As of 2015-03-27 19:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (619 votes), past polls