diff options
author | Peter Eisentraut | 2017-03-27 02:24:13 +0000 |
---|---|---|
committer | Peter Eisentraut | 2017-03-27 12:18:22 +0000 |
commit | facde2a98f0b5f7689b4e30a9e7376e926e733b8 (patch) | |
tree | ab8b2cc1b2bd47b7db5e2def26d8eca4ce6ca438 /src/test/locale | |
parent | de4da168d57de812bb30d359394b7913635d21a9 (diff) |
Clean up Perl code according to perlcritic
Fix all perlcritic warnings of severity level 5, except in
src/backend/utils/Gen_dummy_probes.pl, which is automatically generated.
Reviewed-by: Dagfinn Ilmari Mannsåker <[email protected]>
Reviewed-by: Daniel Gustafsson <[email protected]>
Diffstat (limited to 'src/test/locale')
-rwxr-xr-x | src/test/locale/sort-test.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/locale/sort-test.pl b/src/test/locale/sort-test.pl index cb7e4934e44..b8fc93aab18 100755 --- a/src/test/locale/sort-test.pl +++ b/src/test/locale/sort-test.pl @@ -3,9 +3,9 @@ use strict; use locale; -open(INFILE, "<$ARGV[0]"); -chop(my (@words) = <INFILE>); -close(INFILE); +open(my $in_fh, '<', $ARGV[0]) || die; +chop(my (@words) = <$in_fh>); +close($in_fh); $" = "\n"; my (@result) = sort @words; |