diff options
author | Guillem Jover <guillem@debian.org> | 2015-02-15 23:18:31 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2015-03-30 20:22:38 +0200 |
commit | 01abe8afb95f4bafb1f192fb3fe451a95cd2e3f8 (patch) | |
tree | 2384393b6e59f3b852a9ec70a4733e5f4310847a /scripts/Dpkg/Control/Types.pm | |
parent | 046ad868331a9f1581837404449b4320e6d09c36 (diff) | |
download | dpkg-01abe8afb95f4bafb1f192fb3fe451a95cd2e3f8.tar.gz |
perl: Rework use and exporter declarations
Place 'use' strict and warnings first, then Exporter 'our' declarations,
then Test module imports, then system module imports, then Dpkg module
imports, then 'use' parent and overload pragmas, separated by a blank
line for each block.
Split each exported symbol declaration into its own line to ease
modifications.
Diffstat (limited to 'scripts/Dpkg/Control/Types.pm')
-rw-r--r-- | scripts/Dpkg/Control/Types.pm | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/scripts/Dpkg/Control/Types.pm b/scripts/Dpkg/Control/Types.pm index bdcdd239a..09e12d155 100644 --- a/scripts/Dpkg/Control/Types.pm +++ b/scripts/Dpkg/Control/Types.pm @@ -17,11 +17,21 @@ use strict; use warnings; our $VERSION = '0.01'; +our @EXPORT = qw( + CTRL_UNKNOWN + CTRL_INFO_SRC + CTRL_INFO_PKG + CTRL_INDEX_SRC + CTRL_INDEX_PKG + CTRL_PKG_SRC + CTRL_PKG_DEB + CTRL_FILE_CHANGES + CTRL_FILE_VENDOR + CTRL_FILE_STATUS + CTRL_CHANGELOG +); use Exporter qw(import); -our @EXPORT = qw(CTRL_UNKNOWN CTRL_INFO_SRC CTRL_INFO_PKG CTRL_INDEX_SRC - CTRL_INDEX_PKG CTRL_PKG_SRC CTRL_PKG_DEB CTRL_FILE_CHANGES - CTRL_FILE_VENDOR CTRL_FILE_STATUS CTRL_CHANGELOG); =encoding utf8 |