use File::Find; find( \&wanted, "C:" ); my @st = stat "C:bar.txt";