RosettaCodeData/Task/Find-common-directory-path/Perl/find-common-directory-path-3.pl
2015-02-20 00:35:01 -05:00

4 lines
179 B
Perl

my @paths = qw(/home/user1/tmp/coverage/test
/home/user1/tmp/covert/operator
/home/user1/tmp/coven/members);
print common_prefix('/', @paths), "\n";