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