in reply to Can File::Find call a method?
File::Find can't, but the wanted function can:
use File::Find qw( find ); my $obj=Some::Class->new(...); find(sub { $obj->someEntry($_) },...);
Inside a method:
use File::Find qw( find ); sub myMethod { my $self=shift; find(sub { $self->otherMethod($_) },...); }
Alexander
|
|---|