[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Looping folders



I ran across something the other day which I was wondering
if anyone else had run across.  I was helping someone do
some MacPerl coding and we were recursing through
directories.  The program ran out of memory because it
turned out they had aliased a folder (somehow) to point
back at the top level directory.  I corrected this by just
always comparing the new folder against a list of folders
already gone through.  Is there a better way to do this?

(ie: Does File::Find know about this possible problem?  Or
would it go into an infinite loop too?)

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch