diff options
| author | Mohammad S Anwar <Mohammad.Anwar@yahoo.com> | 2020-10-11 16:16:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-11 16:16:48 +0100 |
| commit | bbd4de142daa9f53e92ff749a95541591b16704c (patch) | |
| tree | 9acbc920f39c9cdd7fc6241ef307a5037df7d960 | |
| parent | a330b91f1e526c4bcb35533bc961690008d34661 (diff) | |
| parent | d64d5787499b352a3061ffcb8a56d7d739394898 (diff) | |
| download | perlweeklychallenge-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.pl | 15 |
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; |
