Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Why I hate File::Find and how I (hope I) fixed it

by Jenda (Abbot)
on May 21, 2008 at 02:15 UTC ( [id://687696] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    # create various wnated functions
    my $wanted= make_wanted( \&wanted_1, 'toto', 'tata');
    find( $wanted, '.');
    print "\n";
  2. or download this
    find( sub{ wanted_1( 'toto', 'tata')}, '.');
    print "\n";
  3. or download this
    use File::Find;
    find( $wanted->(1,2), 'd:\temp\copy');
    find( $wanted->(20,19), 'd:\temp\copy');
  4. or download this
    *wanted = callback {
    find( wanted(1,2), 'd:\temp\copy');
    find( wanted(20,19), 'd:\temp\copy');