Skip to content

Instantly share code, notes, and snippets.

@wchristian
Created December 18, 2013 15:04
Show Gist options
  • Save wchristian/8023790 to your computer and use it in GitHub Desktop.
Save wchristian/8023790 to your computer and use it in GitHub Desktop.
use strictures;
use lib 'lib';
use PPI;
use File::Find::Rule;
use 5.010;
$|++;
my @files = File::Find::Rule->file->name( '*.pm' )->in( "c:/Perl" );
say "found ".@files." files";
for my $file (@files) {
PPI::Document->new( $file );
print '.';
print "\n$file\n" if PPI::Document->errstr =~ /meep/;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment