Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created February 3, 2017 18:54
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 zoffixznet/98f82d29f6671d57c53374f677141b33 to your computer and use it in GitHub Desktop.
Save zoffixznet/98f82d29f6671d57c53374f677141b33 to your computer and use it in GitHub Desktop.
zoffix@leliana:/tmp/tmp.YvNSdWF7by$ perl6 -e '"a b c" ~~ m:g/(\w+)/; say $/'
(a
0 => a b
0 => b c
0 => c)
zoffix@leliana:/tmp/tmp.YvNSdWF7by$ perl6 -e '"a b c" ~~ m:g/(\w+)/; $/».gist.join("\n-------\n").say'
a
0 => a
-------
b
0 => b
-------
c
0 => c
zoffix@leliana:/tmp/tmp.YvNSdWF7by$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment