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

[MacPerl] Please help me with FSpIterateDirectory



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

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