4 # Check the tree against missing VERSIONs.
6 # Originally by Larry Shatzer
15 if (/\.pm$/ && $File::Find::name !~ m:/t/:) { # pm but not in a test
16 unless (parse_file($_)) {
17 print "$File::Find::name\n";
20 }, @ARGV ? shift : ".");
23 my $parsefile = shift;
27 open(FH,$parsefile) or warn "Could not open '$parsefile': $!";
31 $inpod = /^=(?!cut)/ ? 1 : /^=cut/ ? 0 : $inpod;
32 next if $inpod || /^\s*\#/;
34 next unless /([\$*])(([\w\:\']*)\bVERSION)\b.*\=/;
36 package ExtUtils::MakeMaker::_version;
44 $result = eval($eval);
45 warn "Could not eval '$eval' in $parsefile: $@" if $@;
46 $result = "undef" unless defined $result;