in reply to What is this Moose mojo?
Moose creates:has fif => ( is => 'rw' );
(actually, the last two are just one method IIRC...)
,Moose creates:has fif => ( is => 'rw', reader => '_fif' );
you are creating another method, that has nothing to do with the others. But, as convention in perl is that _methods beginning with an underscore are private, people will call the $self->fif method to read the attribute so they won't see the value unless the password thing is true. Silly, not great security, but that is that.sub fif { ...... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What is this Moose mojo?
by zwon (Abbot) on Feb 05, 2009 at 00:13 UTC | |
|
Re^2: What is this Moose mojo?
by zby (Vicar) on Feb 05, 2009 at 09:40 UTC |