in reply to treating the filesystem structure as hash of hashes

My suggestions:
  1. File::Find probably will be faster/better in traversing th filesystem; and
  2. just save the full pathname in the hash values instead of the filename only
[]s, HTH, Massa
  • Comment on Re: threating the filesystem structure as hash of hashes

Replies are listed 'Best First'.
Re^2: threating the filesystem structure as hash of hashes
by Anonymous Monk on Jul 13, 2008 at 17:59 UTC
    Also, unless you are the *only* one using the file system, you run the risk of having an out of date directory structure. Imagine what will happen in your program if someone else (network share?) deletes a directory or file after you have built your hash.