aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xchallenge-126/kai-burgdorf/perl/ch-1.pl12
1 files changed, 12 insertions, 0 deletions
diff --git a/challenge-126/kai-burgdorf/perl/ch-1.pl b/challenge-126/kai-burgdorf/perl/ch-1.pl
new file mode 100755
index 0000000000..122ffd08ae
--- /dev/null
+++ b/challenge-126/kai-burgdorf/perl/ch-1.pl
@@ -0,0 +1,12 @@
+#!/usr/bin/env perl
+
+use utf8;
+use strict;
+use warnings;
+
+
+my $N = 25;
+my $count = 0;
+
+for(2..$N) { $count++ if ( "$_" !~ m/1/ ); }
+print "Input: $N\nOutput:\n\t$count\n";