overload opendir, readdir, and stat, and use File::Find?
hmmm...
In reply to Re: Parsing a tree instead of a string? by ysth in thread Parsing a tree instead of a string? by nothingmuch