Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0e8286d

Browse files
committed
Fix perlcritic warnings
1 parentbf2a691 commit0e8286d

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-
openmy$INPUT,$input_file
21+
openmy$INPUT,'<',$input_file
2222
ordie"Could not open input file$input_file:$!";
23-
openmy$OUTPUT,">$output_file"
23+
openmy$OUTPUT,'>',$output_file
2424
ordie"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
ordie"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")ordie"Could not open UnicodeData.txt:$!.";
35+
open($FH,'<',"UnicodeData.txt")ordie"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-
openmy$OUTPUT,">$output_file"
66+
openmy$OUTPUT,'>',$output_file
6767
ordie"Could not open output file$output_file:$!\n";
6868

6969
print$OUTPUT<<HEADER;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp