Skip to content

Instantly share code, notes, and snippets.

@zoffixznet

zoffixznet/p6.p6 Secret

Created December 10, 2016 20:01
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/1a5cbd80f68d87955a031cf86bfd82af to your computer and use it in GitHub Desktop.
Save zoffixznet/1a5cbd80f68d87955a031cf86bfd82af to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl6
my @strs = ("11 22 33", "44 55 66", "77 88 99");
for @strs {
$_ ~~ s/\s(\S+)\s(\S+)/-$0-$1/;
}
say @strs;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment