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

[MacPerl] ? - Mac::MoreFiles::FSpIterateDirectory



Greetings!

I apologize in advance if this is not the proper place, protocol, or
topic.  That having been said...

I'm trying to get FSpIterateDirectory working, but am getting an obtuse
error about &main.  I'm ignoring the pointer parameter, but only have a
tenuous grasp on the syntax of the command (couldn't find it in IM,
either!).  Can anybody help?

Here's a snippet of code from the script:

open(OUT, ">somefile");

$dir = MacPerl::Volumes();
$myspec = MacPerl::MakeFSSpec($dir);
Mac::MoreFiles::FSpIterateDirectory($myspec,2,&myFilter,OUT);
close(OUT);

sub myFilter {
	  local($ptr, $spec) = @_;
   print "spec: $spec\n";
}

Thanks in advance.

Aaron Munter
Technology Development Coordinator,
Salem-Keizer Public Schools, Salem, Oregon, USA


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