Skip to content

Commit e8bcf0a

Browse files
davorgbook
authored andcommitted
Fix "uninitialised" warning
1 parent a6aecb6 commit e8bcf0a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/PPC.pm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ sub new_from_file($class, $ppc_file) {
7575
$ppc{author} = delete $ppc{authors}
7676
}
7777

78-
$ppc{$_} =~ s|\@.+?>|\@XXXX>|g for (qw[author sponsor]);
78+
for (qw[author sponsor]) {
79+
$ppc{$_} //= '';
80+
$ppc{$_} =~ s|\@.+?>|\@XXXX>|g;
81+
}
7982

8083
return $class->new(%ppc);
8184
}

0 commit comments

Comments
 (0)