in reply to Re: What is this Moose mojo?
in thread What is this Moose mojo?
All right then... (damn! that was quick!) :-D ... we still seem to have an attribute and a sub that are both named “fif.”
Why is there not a conflict with regard to the without an underscore name? Don't we now have a method-name and an attribute-name that are identical? If I now say “$foo->fif,” (no underscore...) what happens ... and why?
Does the author ... intend ... to first set-up the has declaration, i.e. “just to create the accessor,” and then to immediately supersede it with his own sub? (Blink...) If so, why??
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: What is this Moose mojo?
by zwon (Abbot) on Feb 04, 2009 at 22:51 UTC | |
|
Re^3: What is this Moose mojo?
by kyle (Abbot) on Feb 04, 2009 at 22:44 UTC |