Re: Moose/mouse r/o variables
[email protected] (Stevan Little)
| Newsgroups | perl.moose |
|---|---|
| Message-ID | <[email protected]> |
On Mar 28, 2011, at 8:28 AM, Peter Gordon wrote: > I have a small class, where I would like the variables to be read only > by external calls, but rw for internal access. > Peter, has 'foo' => ( is => 'ro', writer => '_set_foo', ... ); Is the more common method for this. - Stevan