perlcritic: make all open() calls three-argument

Two-argument calls end up parsing the second argument to guess what
should happen, three-arg parses ... less?
This commit is contained in:
Graham Christensen
2021-10-19 22:37:17 -04:00
parent 43c056bb7b
commit 7095d00608
5 changed files with 9 additions and 9 deletions

View File

@ -60,7 +60,7 @@ if (!defined($pid = fork())) {
kill('INT', $pid);
}
open my $fh, $filename or die ("Can't open(): $!\n");
open(my $fh, "<", $filename) or die ("Can't open(): $!\n");
my $i = 0;
my $uri = <$fh>;
my $data = <$fh>;