in reply to Re^6: tree commandin thread tree command
my @all = glob '* */'; @dirs = grep m(/$), @all; # etc. [download]