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

Re: Hash vs constant vs package vs other for data structure

by AppleFritter (Vicar)
on Mar 27, 2017 at 18:43 UTC ( #1186121=note: print w/replies, xml ) Need Help??


in reply to Hash vs constant vs package vs other for data structure

Given this...

the first two dimensions refer to the location of an object and the third refers to properties of that object such as flags and other data

...I'd definitely do this:

Use an AoAoH instead, and refer to each data member by name

YMMV, of course.

  • Comment on Re: Hash vs constant vs package vs other for data structure

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2020-06-01 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (177 votes). Check out past polls.

    Notices?