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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.