in reply to Parsing a tree instead of a string?
overload opendir, readdir, and stat, and use File::Find?
hmmm...
I also guess that the Tree:: family of modules has some implementation akin to File::Find's traversal and extraction.
Nice idea though ;-)