File::Find
use File::Find; find(\&wanted, @directories_to_search); sub wanted { say $_; # err.h say $File::Find::dir; # /usr/include }
use File::Find; find(\&wanted, @directories_to_search); sub wanted { say $_; # err.h say $File::Find::dir; # /usr/include }