aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime <42359730+bracteatus@users.noreply.github.com>2019-06-13 19:20:58 -0600
committerJaime <42359730+bracteatus@users.noreply.github.com>2019-06-13 19:20:58 -0600
commitc40f4a63c65ee34e3ec96197559b8c90e783a1e6 (patch)
treef6805a809a5f8fd7bc17b754eb75eecf5d16ff2f
parentf672631668e142626182cffbd82d83898593b565 (diff)
downloadperlweeklychallenge-club-c40f4a63c65ee34e3ec96197559b8c90e783a1e6.tar.gz
perlweeklychallenge-club-c40f4a63c65ee34e3ec96197559b8c90e783a1e6.tar.bz2
perlweeklychallenge-club-c40f4a63c65ee34e3ec96197559b8c90e783a1e6.zip
Create ch-2.pl
-rw-r--r--challenge-012/jaime/perl5/ch-2.pl17
1 files changed, 17 insertions, 0 deletions
diff --git a/challenge-012/jaime/perl5/ch-2.pl b/challenge-012/jaime/perl5/ch-2.pl
new file mode 100644
index 0000000000..7a4262c7f6
--- /dev/null
+++ b/challenge-012/jaime/perl5/ch-2.pl
@@ -0,0 +1,17 @@
+# Solution by Jaime Corchado, (@tortsnare)[https://twitter.com/tortsnare].
+#
+# Challenge #2
+#
+# Write a script that finds the common directory path, given a
+# collection of paths and directory separator. For example, if the
+# following paths are supplied.
+#
+# ```
+# /a/b/c/d
+# /a/b/cd
+# /a/b/cc
+# /a/b/c/d/e
+# ```
+#
+# and the path separator is `/`. Your script should return `/a/b` as common
+# directory path.