Help for this page

Select Code to Download


  1. or download this
    @haplotypes = (); ## THIS IS AN ARRAY DECLARATION
    .....
    push @{ $haplotypes{ $currentPop} }, [ @temp ]; 
    ## THIS ...........^............^...................is a hash 
    ## with a numeric key, that increments from zero, by 1!
    
  2. or download this
         @temp = split;
          push @{$haplotypes{$currentPop}}, [@temp];
    
  3. or download this
        push @{ $haplotypes[ $currentPop ] }, [ split ];
    
  4. or download this
        @{$TempList{$currentPop};} = ();
        while (@{$haplotypes{$currentPop};}) {
            push @{$TempList{$currentPop};}, splice(@{$haplotypes{$current
    +Pop};}, rand @{$haplotypes{$currentPop};}, 1);
        }
        @{$haplotypes{$currentPop};} = @{$TempList{$currentPop};};
    
  5. or download this
    use List::Util qw[ shuffle ]; ## near the top of your program.
    ...
    
        @{ $haplotypes{$currentPop } } = shuffle @{ $haplotypes{$currentPo
    +p } };
    
  6. or download this
        push @total, $currentPop;
    
  7. or download this
      for($i = 0; $i <  $sampleSize{$_}/2; $i++) {
    
  8. or download this
    Use of uninitialized value in division (/)...