From 8730a72d03faaed9e6c4f419e9b06805fb3171f2 Mon Sep 17 00:00:00 2001 From: Jaime <42359730+bracteatus@users.noreply.github.com> Date: Fri, 26 Jul 2019 19:04:16 -0600 Subject: Create ch-1.pl --- challenge-018/jaime/perl5/ch-1.pl | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 challenge-018/jaime/perl5/ch-1.pl diff --git a/challenge-018/jaime/perl5/ch-1.pl b/challenge-018/jaime/perl5/ch-1.pl new file mode 100644 index 0000000000..b5cd68a3c6 --- /dev/null +++ b/challenge-018/jaime/perl5/ch-1.pl @@ -0,0 +1,8 @@ +# +# # Challenge #1 +# +# Write a script that takes 2 or more strings as command line parameters +# and print the longest common substring. For example, the longest +# common substring of the strings “ABABC”, “BABCA” and “ABCBA” is string +# “ABC” of length 3. Other common substrings are “A”, “AB”, “B”, “BA”, +# “BC” and “C”. -- cgit