Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: How to represent complex data structure and manipulate it easily?

by linuxkid (Sexton)
on Jun 19, 2012 at 20:26 UTC ( #977150=note: print w/ replies, xml ) Need Help??


in reply to How to represent complex data structure and manipulate it easily?

I suggest something like this:$structure->[$number]->{$name}

--linuxkid


imrunningoutofideas.co.cc


Comment on Re: How to represent complex data structure and manipulate it easily?
Download Code
Re^2: How to represent complex data structure and manipulate it easily?
by Boldra (Deacon) on Jun 21, 2012 at 07:16 UTC
    Did you know you can omit the second (and subsequent) arrows?
    $structure->[$number]->{$name} can be written $structure->[$number]{$name}.


    - Boldra

      never did realize that, but i dok find it improves readability, especcially when helping grren perl converts...

      --linuxkid


      imrunningoutofideas.co.cc

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2014-09-21 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (176 votes), past polls