for my $att (qw/x y w h/) { my $predicate = "has_$att"; $attr{$att} = $self->$att if $self->$predicate; }
In reply to Re: Moose attribute predicate alternative
by choroba
in thread Moose attribute predicate alternative
by antmico
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |