in reply to Re^2: Using ArrayRef data members in Moose
in thread Using ArrayRef data members in Moose

By way of contrast, I figured out the sugar for using HashRefs.

This is not sugar at all, this is just how HASH refs work. The "count_by_word" accessor is simply returning the HASH ref value that is stored, nothing more nothing less.

-stvn
  • Comment on Re^3: Using ArrayRef data members in Moose

Replies are listed 'Best First'.
Re^4: Using ArrayRef data members in Moose
by dmorgo (Pilgrim) on Jul 05, 2008 at 03:28 UTC
    Ah, yes. Now I get it. Thanks.

    And thanks also to karavelov for the example.