Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!purdue!iuvax!sahayman From: sahayman@iuvax.cs.indiana.edu (Steve Hayman) Newsgroups: comp.lang.perl Subject: How about building in directory-tree-walking? like "ftw()" Message-ID: <39362@iuvax.cs.indiana.edu> Date: 22 Mar 90 22:42:24 GMT Distribution: comp Organization: Computer Science Department, Indiana University Lines: 21 I've been trying to pay attention but I don't know if this has come up before. Anyway - How about perl having some sort of built-in directory tree walking? (Or a perl library routine for this.) Something like the ftw() routine that many versions of Unix have, that lets you walk through a directory tree and call a specified function for each thing in the tree. I know I could open a pipe from "find ... -print" but I find it to be a pain trying to deal with the different find options on different machines. Some machines have -xdev, some have -mount, some have -prune and so on. It would be great if perl had some sort of tree-walking built in. Then I could make fancier selections than what 'find' lets me do. Just a thought. Perl is great. Thank you Larry. Steve -- Steve Hayman Workstation Manager Computer Science Department Indiana U. sahayman@iuvax.cs.indiana.edu (812) 855-6984