in reply to module design musings: File::CopyTree

Have you had a look at the marvellous File::Find::Rule which makes recursive file searching ever so trivial? To demonstrate I shall take your example snippet and map it to a File::Find::Rule command
## UNTESTED ## use File::Find::Rule; my $dest = shift; # just needs case-insensitivity ... my $rule = File::Find::Rule->new(); my @files = $rule->file() ->not( $rule->new->(name => '*.obj') ) ->exec( \&foo ) ->in( $dest );
So if you do go ahead with the module File::Find::Rule should fit in nicely.
HTH

_________
broquaint

Replies are listed 'Best First'.
Re^2: module design musings: File::CopyTree
by John M. Dlugosz (Monsignor) on Sep 27, 2002 at 14:37 UTC
    That's interesting. Thanks for pointing it out.

    I can see the benifits of having the matcher itself be useful alone, so I also need to isolate the file copy part.