in reply to How to map a directory tree to a perl hash tree

Might not a recursive method of loading this hash work better? Namely, if the 'file' is a directory, then it's entry would just be something like $dirth{ $dir } = dirTreeHash( $dir ).
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain

Replies are listed 'Best First'.
(tye)Re2: How to map a directory tree to a perl hash tree
by tye (Sage) on Mar 11, 2001 at 00:52 UTC

    Yes, but then you couldn't use File::Find (one of several problems with File::Find's call-back interface).

            - tye (but my friends call me "Tye")