Jim Burton <jim@burtcom.com> asks: >I recently discovered the procedure in Mac::MoreFiles called >FSpIterateDirectory, which is supposed to walk through a specified >directory and call a specified subroutine for each file found. I've tried >the following code: >----- >#!/usr/bin/perl > >#walker! > >use Mac::MoreFiles; >FSpIterateDirectory (":",0,DoThis,dummy); >print "\nFinished\n\n"; > >sub DoThis { > print "Information returned: @_\n"; > } >----- >And it seems to return information about only the first file in the >directory. What have I done wrong? Jim, Your subroutine never returns! Note that it never prints the "Finished," either. Add return 0; to the end of the subroutine, and it will do what you want. ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch