aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-064/cheok-yin-fung/BLOG.txt1
-rw-r--r--challenge-064/cheok-yin-fung/perl/ch-2.pl7
2 files changed, 6 insertions, 2 deletions
diff --git a/challenge-064/cheok-yin-fung/BLOG.txt b/challenge-064/cheok-yin-fung/BLOG.txt
new file mode 100644
index 0000000000..2ab67b801b
--- /dev/null
+++ b/challenge-064/cheok-yin-fung/BLOG.txt
@@ -0,0 +1 @@
+http://blogs.perl.org/users/c_y_fung/2020/06/cys-post-on-pwc064---my-shortcomings.html
diff --git a/challenge-064/cheok-yin-fung/perl/ch-2.pl b/challenge-064/cheok-yin-fung/perl/ch-2.pl
index 2c04455b3a..72d3946bdd 100644
--- a/challenge-064/cheok-yin-fung/perl/ch-2.pl
+++ b/challenge-064/cheok-yin-fung/perl/ch-2.pl
@@ -3,6 +3,9 @@ use strict;
use Math::Combinatorics;
use List::Util qw{sum};
+# Usage:
+# Example Input: $ perl ch-2.pl perlweeklychallenge weekly challenge perl
+# Output: "perl","weekly","challenge"
#ref Challenge-051 task-1 3 Sum
#brute force
@@ -13,8 +16,8 @@ my $S;
my @W;
if ($ARGV[0] eq undef) {
- $S = "thequickbrownfoxjumpsoverthelazydogwooyousee";
- @W = split / /, "theq uickb rownf ox jumps over the lazy dog";
+ $S = "thequickbrownfoxjumpsoverthelazydogwoo";
+ @W = split / /, "theq uickb rownf ox jumps over the lazy dog woo";
} else {
$S = shift @ARGV;
@W = @ARGV;