I have to add objects dynamically in a code and therefore the number of objects are not known beforehand. How to achieve this effectly in a simple way? e.g. $panel = Panel->new( -length => 1000, -width => 10, ); my $obj1 = Object::Generic->new( -start => 10,