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

Re: "Fields" for "Objects"

by webfiend (Vicar)
on Jun 10, 2009 at 19:10 UTC ( #770422=note: print w/replies, xml ) Need Help??


in reply to "Fields" for "Objects"

Listen to Your Mother.

I thought you might be curious about the specifics of how the advice to use Moose would help in this case, though. The functionality of your code above would be replaced by:

package Whatever; use Moose; has 'main_message' => ( is => 'rw' );

Poof! Instant access to $whatever->main_message and $whatever->main_message($value).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2019-05-23 23:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (147 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!