aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Sommrey <28217714+jo-37@users.noreply.github.com>2022-11-29 18:57:52 +0100
committerJörg Sommrey <28217714+jo-37@users.noreply.github.com>2022-12-02 16:38:30 +0100
commitd7abd3a53ab87053ace9b3b8d8584fc144ce3c5e (patch)
tree86c1887b5786dfce14285d57a8690017eb0fbaf5
parentb27bbabd19f3774e6bb98dbfc41bc087c38f71a8 (diff)
downloadperlweeklychallenge-club-d7abd3a53ab87053ace9b3b8d8584fc144ce3c5e.tar.gz
perlweeklychallenge-club-d7abd3a53ab87053ace9b3b8d8584fc144ce3c5e.tar.bz2
perlweeklychallenge-club-d7abd3a53ab87053ace9b3b8d8584fc144ce3c5e.zip
Solution to task 1
-rwxr-xr-xchallenge-193/jo-37/perl/ch-1.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/challenge-193/jo-37/perl/ch-1.sh b/challenge-193/jo-37/perl/ch-1.sh
new file mode 100755
index 0000000000..8c0aa93084
--- /dev/null
+++ b/challenge-193/jo-37/perl/ch-1.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+perl -se 'printf "%0${n}b\n", $_ for 0..2**$n-1' -- -n=$1