Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Using ArrayRef data members in Moose

by stvn (Monsignor)
on Jul 03, 2008 at 02:40 UTC ( #695275=note: print w/ replies, xml ) Need Help??


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
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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2014-12-22 02:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (110 votes), past polls