Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
        $n %= 10;
    }
    say substr $out, 0, $w, '' while $out;
    
  2. or download this
    ..........................................
    ..............................0...........
    ...
    .................................9....5...
    .................................01234....
    ..........................................
    
  3. or download this
    $img  = conv2d( $img, $kernel ) == 1;
    $img += 48;
    ...
    
    push @list, $i
        while first { substr $s, $i += $_, 1, 0 } @checks;
    
  4. or download this
    >perl -MList::Util=uniqnum -E "say for uniqnum 1,1,2,1
    1
    2
    
  5. or download this
    >perl -E "say '1121'=~tr/12/12/sr"
    121
    
  6. or download this
    my $prev = -1;
    @list = grep { 
    ...
        my $y = $_ / $w_ / 3;
        $x + $y * $w
    } @list;