Just another Perl shrine | |
PerlMonks |
Re: "Fields" for "Objects"by webfiend (Vicar) |
on Jun 10, 2009 at 19:10 UTC ( [id://770422]=note: print w/replies, xml ) | Need Help?? |
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:
Poof! Instant access to $whatever->main_message and $whatever->main_message($value).
In Section
Seekers of Perl Wisdom
|
|