http://www.perlmonks.org?node_id=932464


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)