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

Re: Storing simple Value Pairs

by jeffa (Chancellor)
on Oct 19, 2011 at 18:43 UTC ( #932464=note: print w/ replies, xml ) Need Help??


in reply to Storing simple Value Pairs

I do not feel that using a hash here is wasteful whatsoever, so i would comfortably use a hash to store these values. They are called X and Y, after all, and not 0 and 1. I certainly would have no aversion to using a Moose object either.

has X => ( is => 'rw' ); has Y => ( is => 'rw' );


jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)


Comment on Re: Storing simple Value Pairs
Select or Download Code
Re^2: Storing simple Value Pairs
by raybies (Chaplain) on Oct 19, 2011 at 18:46 UTC
    ...perhaps if Moose were core, I wouldn't have a problem with it either, but at this point, installation is quite labor intensive (network airgap), and an assortment of firewalls hurdles...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2015-07-05 19:44 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