7 open MANIFEST, "< MANIFEST" or die "Cannot open MANIFEST";
12 push @files, $_ if /\.(pm|t|pl)$/;
15 my @scripts = grep /\.(pl|t)$/, @files;
16 plan tests => scalar(@files) + scalar(@scripts);
17 for my $file (@files) {
18 open SRC, "< $file" or die "Cannot open $file: $!";
19 my $data = do { local $/; <SRC> };
21 ok($data =~ /^use\s+strict/m, "use strict in $file");
22 if ($file =~ /\.(pl|t)$/) {
23 ok($data =~ /#!.*perl.*-w|use warnings;/m, "-w or use warnings in $file");