in reply to List directory(s)

while ( $filename =~ /(.+?\w+\/)/g ) { print $`, $1, $/; }