- or download this
my $code = "";
map { $code .= $_} (@{$self->{GENES}});
- or download this
my $code = join('', @{$self->{GENES}});
- or download this
for my $i (0 .. $self->{SIZE}) {
my $individual = Individual->new();
$individual->create();
push (@{$self->{INDIVIDUALS}}, $individual);
}
- or download this
push (@{$self->{INDIVIDUALS}}, Individual->new->create) for 0..$self->
+{SIZE};
- or download this
$self->{INDIVIDUALS} = [ map {Individual->new->create} 0..$self->{SIZE
+} ];