Help for this page

Select Code to Download


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