Skip to content

Instantly share code, notes, and snippets.

Created July 13, 2011 20:21
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 anonymous/1081228 to your computer and use it in GitHub Desktop.
Save anonymous/1081228 to your computer and use it in GitHub Desktop.
pmichaud@kiwi:~/nom$ cat z
my $cursor := Cursor."!cursor_init"('hello world');
my $regex := / (\S+) \s+ (\S+) /;
my $m = $cursor.$regex().MATCH;
say $m.list[0];
say $m.list[1];
pmichaud@kiwi:~/nom$ ./perl6 z
Useless declaration of a has-scoped method in mainline
hello
world
pmichaud@kiwi:~/nom$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment