RosettaCodeData/Task/Find-common-directory-path/Perl/find-common-directory-path-3.pl

5 lines
179 B
Perl
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
my @paths = qw(/home/user1/tmp/coverage/test
/home/user1/tmp/covert/operator
/home/user1/tmp/coven/members);
print common_prefix('/', @paths), "\n";