7 predicate => 'has_title',
8 clearer => 'clear_title',
24 if ( @_ == 1 && 'ARRAY' eq ref $_[0] ) {
26 first_name => $_[0]->[0],
27 last_name => $_[0]->[1],
31 return $class->SUPER::BUILDARGS(@_);
37 before full_name => sub {
38 push @CALL, 'calling full_name';
41 after full_name => sub {
42 push @CALL, 'called full_name';
48 my $title = join q{ }, $self->first_name, $self->last_name;
49 $title .= q[ (] . $self->title . q[)]
55 around full_name => sub {
59 return $self->$orig unless $self->last_name eq 'Wall';
61 return q{*} . $self->$orig . q{*};
64 sub as_string { $_[0]->full_name }
68 __PACKAGE__->meta->make_immutable;