Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: No such pseudo-hash field

by ELISHEVA (Prior)
on Mar 28, 2011 at 11:40 UTC ( #895887=note: print w/ replies, xml ) Need Help??


in reply to No such pseudo-hash field

When you are trying to figure out how to access a part of a complex data structure, it is important to pay attention to each level of curly brace { and square bracket [. If you look carefully you should see a square brace next to {properties}. That means that hash member is storing an array reference. Within the array are a series of {...}. Each of those are array elements. Since the array element with the property name 'maxEngines' is in the first array element, you would access its associated value like this:

$license->{properties}->[0]->{value}


Comment on Re: No such pseudo-hash field
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://895887]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2015-07-05 13:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls