Skip to content

Commit 0e8286d

Browse files
committed
Fix perlcritic warnings
1 parent bf2a691 commit 0e8286d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/common/unicode/generate-norm_test_table.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
my $output_base = basename($output_file);
1919

2020
# Open the input and output files
21-
open my $INPUT, $input_file
21+
open my $INPUT, '<', $input_file
2222
or die "Could not open input file $input_file: $!";
23-
open my $OUTPUT, "> $output_file"
23+
open my $OUTPUT, '>', $output_file
2424
or die "Could not open output file $output_file: $!\n";
2525

2626
# Print header of output file.

src/common/unicode/generate-unicode_norm_table.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
# Read list of codes that should be excluded from re-composition.
1818
my @composition_exclusion_codes = ();
19-
open($FH, "CompositionExclusions.txt")
19+
open($FH, '<', "CompositionExclusions.txt")
2020
or die "Could not open CompositionExclusions.txt: $!.";
2121
while (my $line = <$FH>)
2222
{
@@ -32,7 +32,7 @@
3232
# and character decomposition mapping
3333
my @characters = ();
3434
my %character_hash = ();
35-
open($FH, "UnicodeData.txt") or die "Could not open UnicodeData.txt: $!.";
35+
open($FH, '<', "UnicodeData.txt") or die "Could not open UnicodeData.txt: $!.";
3636
while (my $line = <$FH>)
3737
{
3838
# Split the line wanted and get the fields needed:
@@ -63,7 +63,7 @@
6363
my $num_characters = scalar @characters;
6464

6565
# Start writing out the output file
66-
open my $OUTPUT, "> $output_file"
66+
open my $OUTPUT, '>', $output_file
6767
or die "Could not open output file $output_file: $!\n";
6868

6969
print $OUTPUT <<HEADER;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy