From d916ca90c354b29cc1b0953508e9601576a4fd1e Mon Sep 17 00:00:00 2001 From: Guillermo Ramos Date: Mon, 1 Jul 2019 13:53:37 +0200 Subject: [all] Formatting, missing comments in header, etc --- 012/ch2.pl | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to '012/ch2.pl') diff --git a/012/ch2.pl b/012/ch2.pl index ffd870c..3162569 100755 --- a/012/ch2.pl +++ b/012/ch2.pl @@ -1,4 +1,17 @@ #!/usr/bin/env perl +# +# 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. +################################################################################ use strict; use warnings; -- cgit v1.2.3