Help for this page

Select Code to Download


  1. or download this
    my $word = 'sigma';
    
    ...
    ) {
       print("$text ", ($text =~ $re ? "matches" : "doesn't match"), "\n")
    +;
    }
    
  2. or download this
    map { [ $word =~ /(.{$_})(.*)/] } 1 .. length( $word) - 1;
    
  3. or download this
    map { ++ pos; [ split /\G/] } ( $word) x ( length( $word) - 1);