sub foo { blah blah } find( { wanted => \&foo }, @dirs );