Help for this page

Select Code to Download


  1. or download this
    my $offset = splice @cPosns, rand @cPosns, 1;
    
  2. or download this
    my $offset = $cPosns[rand @cPosns];
    
  3. or download this
    while (1) {
       ...
       last;
    }
    
  4. or download this
    ...
    
  5. or download this
    push @cPosns, pos $zazb while $zazb =~ m{(?=c)}g;
    
  6. or download this
    push @cPosns, $-[0] while $zazb =~ m{c}g;
    
  7. or download this
    my $pos = -1;
    push @cPosns, $pos while ($pos = index($zazb, 'c', $pos+1)) >= 0;
    
  8. or download this
    sub popnum3 {
        my ( $x, $y, $z ) = @_;  # $_[3] is $zazb
    ...
        }
        return $aob[$x][$y];
    }