diff options
author | Guillem Jover <guillem@debian.org> | 2015-02-12 01:34:14 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2015-03-30 20:06:35 +0200 |
commit | 046ad868331a9f1581837404449b4320e6d09c36 (patch) | |
tree | df6e81bb743b889132b8b4fb1fca56e3ff32ef4e /scripts/Dpkg | |
parent | 19966da8950830948181ee707858384d3a11effb (diff) | |
download | dpkg-046ad868331a9f1581837404449b4320e6d09c36.tar.gz |
Dpkg::Gettext: Use parenthesis on carp call to tell perl it is a function
Because we are using 'require' instead of 'use', perl does not know that
the symbol is a function instead of a bareword.
Diffstat (limited to 'scripts/Dpkg')
-rw-r--r-- | scripts/Dpkg/Gettext.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Dpkg/Gettext.pm b/scripts/Dpkg/Gettext.pm index beba2a649..c5bf331e5 100644 --- a/scripts/Dpkg/Gettext.pm +++ b/scripts/Dpkg/Gettext.pm @@ -101,7 +101,7 @@ sub _g ## no critic (Subroutines::ProhibitUnusedPrivateSubroutines) my $msgid = shift; require Carp; - Carp::carp 'obsolete _g() function, please use g_() instead'; + Carp::carp('obsolete _g() function, please use g_() instead'); return g_($msgid); } |