Skip to content

Commit 5fd783e

Browse files
committed
Fix errors, use strict.
1 parent b2242e7 commit 5fd783e

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

bin/issuegen.pl

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#!/usr/bin/perl
22

3+
use strict;
4+
35
# Color coding
46
# Note statuses will get lowercased before lookup
5-
%statusStyle = (
7+
my %statusStyle = (
68
'accepted' => 'a',
79
'retracted' => 'a',
810
'rejected' => 'r',
@@ -149,10 +151,11 @@
149151

150152
# Anchor issue number
151153
s/Issue (\d+)\./Issue \1. <a href='#issue-\1'>#<\/a>/;
152-
$index = $1;
154+
my $index = $1;
153155

154156
# Color coding WG response
155-
@lines = split /\n/;
157+
my @lines = split /\n/;
158+
my ($status, $code);
156159
foreach (@lines) {
157160
# Get Status
158161
if (/^Open/) {
@@ -187,7 +190,7 @@ sub header {
187190
chomp;
188191

189192
# Extract title and URL
190-
my $title, $url;
193+
my ($title, $url);
191194
for (split /\n+/) {
192195
$title = $1 if (/^Title:\s+(.+)$/);
193196
$url = $1 if (/^Draft:\s+(\S+)/);
@@ -197,7 +200,7 @@ sub header {
197200
# Process URL to get status, date, shorname
198201
die "Error: Draft URL wrong format.\n" unless
199202
($url =~ /([A-Z]{2})-([a-z0-9-]+)-(\d{8})/);
200-
($status, $shortname, $date) = ($1, $2, $3);
203+
my ($status, $shortname, $date) = ($1, $2, $3);
201204
$status = 'LCWD' if ('WD' eq $status && $inFile =~ /[lL][cC]/);
202205
$date = "$1-$2-$3" if ($date =~ /(\d{4})(\d{2})(\d{2})/);
203206

0 commit comments

Comments
 (0)