[libexporter-lite-perl] 03/04: Update long description from upstream DESCRIPTION.

gregor herrmann gregoa at debian.org
Thu Jul 31 16:58:12 UTC 2014


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libexporter-lite-perl.

commit e49686b4372e214dd77981f05cf7ac60819e79d8
Author: gregor herrmann <gregoa at debian.org>
Date:   Thu Jul 31 18:56:47 2014 +0200

    Update long description from upstream DESCRIPTION.
---
 debian/control | 22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)

diff --git a/debian/control b/debian/control
index a1e9625..3fd4e4c 100644
--- a/debian/control
+++ b/debian/control
@@ -16,17 +16,21 @@ Architecture: all
 Depends: ${misc:Depends},
          ${perl:Depends}
 Description: lightweight subset of Exporter
- Exporter::Lite is an alternative to Exporter intended to provide a
- lightweight subset of its functionality.  It supports import(), @EXPORT and
- @EXPORT_OK and not a whole lot else.
+ Exporter::Lite is an alternative to Exporter, intended to provide a
+ lightweight subset of the most commonly-used functionality. It supports
+ import(), @EXPORT and @EXPORT_OK and not a whole lot else.
  .
- Unlike Exporter, it is not necessary to inherit from Exporter::Lite
- (ie. no @ISA = qw(Exporter::Lite) mantra).  Exporter::Lite simply
- exports its import() function.  This might be called a "mix-in".
+ Unlike Exporter, it is not necessary to inherit from Exporter::Lite (ie. no
+ @ISA = qw(Exporter::Lite) mantra). Exporter::Lite simply exports its import()
+ function into your namespace. This might be called a "mix-in" or a "role".
  .
  Setting up a module to export its variables and functions is simple:
  .
- package My::Module;
- use Exporter::Lite;
+  package My::Module;
+  use Exporter::Lite;
  .
- @EXPORT = qw($Foo bar);
+  @EXPORT = qw($Foo bar);
+ .
+ Functions and variables listed in the @EXPORT package variable are
+ automatically exported if you use the module and don't explicitly list any
+ imports. Now, when you use My::Module, $Foo and bar() will show up.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libexporter-lite-perl.git



More information about the Pkg-perl-cvs-commits mailing list