In File::Spec::Unix, splitdir('') returns the empty list rather than a one-list item with the empty
string. I don't think this is correct behavior.
sub splitdir {
return '' if $_[1] eq '';
return split m|/|, $_[1], -1; # Preserve trailing fields
}
should fix it.