in reply to Moose attribute predicate alternative
for my $att (qw/x y w h/) { my $predicate = "has_$att"; $attr{$att} = $self->$att if $self->$predicate; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Moose attribute predicate alternative
by tobyink (Canon) on Jul 04, 2013 at 14:35 UTC | |
by hdb (Monsignor) on Jul 04, 2013 at 14:46 UTC | |
by Anonymous Monk on Jul 04, 2013 at 15:35 UTC | |
|
Re^2: Moose attribute predicate alternative
by antmico (Novice) on Jul 04, 2013 at 15:53 UTC |