note
jeffa
<p>
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.
<code>
has X => ( is => 'rw' );
has Y => ( is => 'rw' );
</code>
</p>
<p>
<code>
</code>
</p>
<div class="pmsig"><div class="pmsig-18800">
<div class="pmsig"><div class="pmsig-18800">
<p>jeffa</p>
<font size=1>
<pre>
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---
(<a href="http://jeffa.perlmonk.org/tripdid.mp3">the triplet paradiddle with high-hat</a>)
</pre></font>
</div></div>
</div></div>
932460
932460