diff options
| author | Mohammad Sajid Anwar <Mohammad.Anwar@yahoo.com> | 2024-09-15 22:29:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-15 22:29:14 +0100 |
| commit | f99724b9c702f1afe438a17829345c39007676c4 (patch) | |
| tree | eb87199a56f3f36d4ae9f74aef8ca0c3c554d9ed | |
| parent | 4093178c709234dda5366091b2ac14f6e60e2454 (diff) | |
| parent | 9cf060c1d5eff75889095b439f100a17bbb3c5a8 (diff) | |
| download | perlweeklychallenge-club-f99724b9c702f1afe438a17829345c39007676c4.tar.gz perlweeklychallenge-club-f99724b9c702f1afe438a17829345c39007676c4.tar.bz2 perlweeklychallenge-club-f99724b9c702f1afe438a17829345c39007676c4.zip | |
Merge pull request #10845 from BarrOff/barroff-286
feat: add solutions for challenge 286 from BarrOff
| -rw-r--r-- | challenge-286/barroff/julia/ch-1.jl | 4 | ||||
| -rw-r--r-- | challenge-286/barroff/raku/ch-1.p6 | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/challenge-286/barroff/julia/ch-1.jl b/challenge-286/barroff/julia/ch-1.jl new file mode 100644 index 0000000000..356e27ce0d --- /dev/null +++ b/challenge-286/barroff/julia/ch-1.jl @@ -0,0 +1,4 @@ +#!/usr/bin/env julia + + +println(rand(split(read(PROGRAM_FILE, String)))) diff --git a/challenge-286/barroff/raku/ch-1.p6 b/challenge-286/barroff/raku/ch-1.p6 new file mode 100644 index 0000000000..3f4502d260 --- /dev/null +++ b/challenge-286/barroff/raku/ch-1.p6 @@ -0,0 +1,9 @@ +#!/usr/bin/env perl6 + +use v6.d; + +#| Print a random word from this script +sub MAIN() { + my $words = $*PROGRAM-NAME.IO.words.Set; + say $words.pick; +} |
