sub _check_and_extract_name { my ($file, $verbose, $root_rx) = @_; # check extension or executable flag # this involves testing the .bat extension on Win32! unless(-f $file && -T _ && ($file =~ /\.(pod|pm|plx?)\z/i || -x _ )) { return undef; } return undef unless contains_pod($file,$verbose); # ... proceed with adding the accepted file to the lost of pods ...