diff options
| -rw-r--r-- | challenge-020/ozzy/perl6/ch-1.p6 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/challenge-020/ozzy/perl6/ch-1.p6 b/challenge-020/ozzy/perl6/ch-1.p6 new file mode 100644 index 0000000000..21474ac5d1 --- /dev/null +++ b/challenge-020/ozzy/perl6/ch-1.p6 @@ -0,0 +1,9 @@ +#!/usr/bin/env perl6 +# Accept a string from command line and split it on change of character. + +sub MAIN (Str $string ="ABBCDEEF") { + + $string.match: / ( $<l>=<.alpha> $<l>* )+ /; # Quantified capture yields array $/[0] of Match objects + say $/[0][*].Str; # Stringify each Match object to see the overall match + +}
\ No newline at end of file |
