aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad S Anwar <Mohammad.Anwar@yahoo.com>2020-10-11 16:16:48 +0100
committerGitHub <noreply@github.com>2020-10-11 16:16:48 +0100
commitbbd4de142daa9f53e92ff749a95541591b16704c (patch)
tree9acbc920f39c9cdd7fc6241ef307a5037df7d960
parenta330b91f1e526c4bcb35533bc961690008d34661 (diff)
parentd64d5787499b352a3061ffcb8a56d7d739394898 (diff)
downloadperlweeklychallenge-club-bbd4de142daa9f53e92ff749a95541591b16704c.tar.gz
perlweeklychallenge-club-bbd4de142daa9f53e92ff749a95541591b16704c.tar.bz2
perlweeklychallenge-club-bbd4de142daa9f53e92ff749a95541591b16704c.zip
Merge pull request #2488 from vinodk89/master
Solution for challenge 81 - Task #1
-rw-r--r--challenge-081/vinod-k/perl/ch-1.pl15
1 files changed, 15 insertions, 0 deletions
diff --git a/challenge-081/vinod-k/perl/ch-1.pl b/challenge-081/vinod-k/perl/ch-1.pl
new file mode 100644
index 0000000000..e76710decc
--- /dev/null
+++ b/challenge-081/vinod-k/perl/ch-1.pl
@@ -0,0 +1,15 @@
+use strict;
+use warnings;
+
+use feature 'say';
+
+#Common substring in 2 strings
+use String::LCSS_XS 'lcss';
+
+my ( $str1, $str2 ) = @ARGV;
+
+die "Script require 2 strings as an arguments\n" unless @ARGV;
+
+my $res = lcss ( $str1, $str2 );
+
+say $res;