test1275.pl: enable strict/warnings, fix them

This commit is contained in:
Viktor Szakats 2025-07-09 22:12:36 +02:00
parent d541cd3999
commit 5bd42f479f
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -23,6 +23,9 @@
#
###########################################################################
use strict;
use warnings 'FATAL' => 'all';
my $root=$ARGV[0] || "..";
my @m = `git ls-files -- $root`;
@ -45,7 +48,7 @@ sub checkfile {
}
open(my $fh, "<", "$f");
my $l;
my $prevl;
my $prevl = '';
my $ignore = 0;
my $metadata = 0;
while(<$fh>) {