Skip to content

Instantly share code, notes, and snippets.

@rakudo
Created September 4, 2009 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rakudo/180689 to your computer and use it in GitHub Desktop.
Save rakudo/180689 to your computer and use it in GitHub Desktop.
$ ./perl6
> my $a = 'aaaa'; $a ~~ m/.*(a).*(a).*/; { say @($/).map({ $_.from }).join: ","; $/.next } while $/;
2,3
1,3
1,2
1,2
0,3
0,2
0,2
0,1
0,1
0,1
2,3
1,3
1,2
1,2
2,3
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment