Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created February 3, 2017 18:54
Show Gist options
  • 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