diff options
| author | Mohammad S Anwar <Mohammad.Anwar@yahoo.com> | 2019-08-06 21:22:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-06 21:22:59 +0100 |
| commit | ee2a2c974e39eeba1ac07bf3a1dc077216fc73aa (patch) | |
| tree | bf4d29b998cf5847d2e5c02854bbf9ceefaaf555 | |
| parent | 4f6d0da5e5e281fca4a5c7614e8043fe6b192b01 (diff) | |
| parent | 259da27c263a993e29c6ac1a6485aa634a7ba902 (diff) | |
| download | perlweeklychallenge-club-ee2a2c974e39eeba1ac07bf3a1dc077216fc73aa.tar.gz perlweeklychallenge-club-ee2a2c974e39eeba1ac07bf3a1dc077216fc73aa.tar.bz2 perlweeklychallenge-club-ee2a2c974e39eeba1ac07bf3a1dc077216fc73aa.zip | |
Merge pull request #480 from threadless-screw/wk20
wk20ch1p6
| -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 |
