| 1 | use Perlmazing qw(splitdir); | ||
| 2 | our @ISA = qw(Perlmazing::Listable); | ||
| 3 | require File::Spec::Unix; | ||
| 4 | |||
| 5 | sub main { | ||
| 6 | $_[0] = length($_[0]) ? File::Spec::Unix->catdir(splitdir $_[0]) : File::Spec::Unix->catdir('.'); | ||
| 7 | # Fix possible UNC paths | ||
| 8 | $_[0] =~ s/^\\\\(\w+)/\/\/$1/ if length $_[0]; | ||
| 9 | } | ||
| 10 | |||
| 11 | 1; |