@SubDirs = split(/\\/, $PathOnly); #### my @SubDirs = File::Spec->splitdir( $PathOnly );