my $s = 'dr-x------ 0 4294967295 513 0 Sep 11 15:45 Start Menu'; $s = join('/', split(/ +/, $s, 9)); print "$s\n";