aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-067/yet-ebreo/perl/ch-1.pl15
-rw-r--r--challenge-067/yet-ebreo/perl/ch-2.pl6
2 files changed, 21 insertions, 0 deletions
diff --git a/challenge-067/yet-ebreo/perl/ch-1.pl b/challenge-067/yet-ebreo/perl/ch-1.pl
new file mode 100644
index 0000000000..affdd331c4
--- /dev/null
+++ b/challenge-067/yet-ebreo/perl/ch-1.pl
@@ -0,0 +1,15 @@
+#!/usr/bin/perl
+use strict;
+use warnings;
+use feature 'say';
+
+use Algorithm::Combinatorics qw(combinations);
+
+my ($m,$n) = @ARGV;
+
+if (not $m && $n) {
+ ($m,$n) = (5,2)
+}
+
+my @arr = (1..$m);
+print "@{$_}\n" for combinations(\@arr,$n) \ No newline at end of file
diff --git a/challenge-067/yet-ebreo/perl/ch-2.pl b/challenge-067/yet-ebreo/perl/ch-2.pl
new file mode 100644
index 0000000000..71e7afda49
--- /dev/null
+++ b/challenge-067/yet-ebreo/perl/ch-2.pl
@@ -0,0 +1,6 @@
+#!/usr/bin/perl
+use strict;
+use feature 'say';
+
+
+say $_ for glob join "",map "{".qw(-,@ ABC DEF GHI JKL MNO PQRS TUV WXYZ)[$_-1]=~s/\B/,/gr."}", ($ARGV[0] || '35')=~/./g \ No newline at end of file