By way of contrast, I figured out the sugar for using HashRefs. Hit on this by "genetic programming" -- trying different things until something worked:
It would be great if there was something similarly simple for arrayref access -- I'm suspecting that there is, and I just haven't found it.$obj->count_by_word()->{$word} = $count;
In reply to Re^2: Using ArrayRef data members in Moose
by dmorgo
in thread Using ArrayRef data members in Moose
by dmorgo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |