You don't have to use builder, this also works:
has 'x' => ( is => 'rw', isa => 'Str', default => sub { my ($self) = @_; return $self->value; }, lazy => 1, );
In reply to Re^7: Moose Attribute Default Dependency
by elTriberium
in thread Moose Attribute Default Dependency
by dpath2o
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |