diff options
| -rw-r--r-- | challenge-064/cheok-yin-fung/perl/ch-2.pl | 7 |
1 files changed, 5 insertions, 2 deletions
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; |
