in reply to Object::InsideOut and LIST of objects
For the :Init routine in Objects::Status, you could use:
sub init :Init { my ($self, $args) = @_; my @objs = map { Objects::StatusElement->new('Name' => $_); } keys(@$args->{'STATUSES'}); $self->set(\@statuses, \@objs); }
|
|---|