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