for (Scrollbar->new) { $_->config1($param1); $_->config2($param2); $otherwidget->add($_); }