Have you tried: has '+message' => ... ?

-- 
Kiffin Gish <[email protected]>
Gouda, The Netherlands


On Thu, 2010-10-14 at 16:08 +0200, Jiří Pavlovský wrote:
> Hello,
> 
> I cannot figure out, why I'm getting this error:
> 
> "You are overwriting a locally defined function (message) with an accessor."
> 
> Indeed, I have a and attribute 'message' in my class:
> 
>    has 'message' => (
>        is  => 'rw',
>        isa => 'Str'
>      );
> 
> but no function of the same name.
> Also I try to get vaalue of the 'message' waht I get is the whole class.
> 
> This also seems to be Moose version dependent. I think I did not see the 
> this warning few versions back.

Reply via email to