Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Mouse CPAN distribution.

Report information
The Basics
Id: 46930
Status: resolved
Priority: 0/
Queue: Mouse

People
Owner: Nobody in particular
Requestors: MLAWREN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.23
Fixed in: (no value)



Subject: Missing implementation of the 'writer' attribute
$ cat x.pl package nowriter; use Mouse; has 'item' => ( isa => 'Int', is => 'rw', writer => '_set_item', ); package main; my $n = nowriter->new; $n->_set_item(1); $ perl x.pl Can't locate object method "_set_item" via package "nowriter" at x.pl line 13. Changing to 'use Moose' above makes the error go away. Cheers, Mark. -- Mark Lawrence
Implemented at 0.30 by gfx++ On 日曜日 6月 14 03:40:49 2009, MLAWREN wrote: Show quoted text
> $ cat x.pl > package nowriter; > use Mouse; > > has 'item' => ( > isa => 'Int', > is => 'rw', > writer => '_set_item', > ); > > package main; > my $n = nowriter->new; > > $n->_set_item(1); > > > $ perl x.pl > Can't locate object method "_set_item" via package "nowriter" at x.pl > line 13. > > > Changing to 'use Moose' above makes the error go away. > > Cheers, > Mark.