| 1 |
Source: libperlx-define-perl |
| 2 |
Section: perl |
| 3 |
Build-Depends: |
| 4 |
libkeyword-simple-perl, |
| 5 |
libnamespace-clean-perl, |
| 6 |
debhelper-compat (= 13), |
| 7 |
Maintainer: Debian Perl Group <[email protected]> |
| 8 |
Uploaders: |
| 9 |
Jonas Smedegaard <[email protected]>, |
| 10 |
Standards-Version: 4.7.3 |
| 11 |
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libperlx-define-perl.git |
| 12 |
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libperlx-define-perl |
| 13 |
Homepage: https://metacpan.org/release/PerlX-Define |
| 14 |
Testsuite: autopkgtest-pkg-perl |
| 15 |
|
| 16 |
Package: libperlx-define-perl |
| 17 |
Architecture: all |
| 18 |
Depends: |
| 19 |
libkeyword-simple-perl, |
| 20 |
libnamespace-clean-perl, |
| 21 |
${misc:Depends}, |
| 22 |
${perl:Depends}, |
| 23 |
Description: cute syntax for defining constants |
| 24 |
PerlX::Define is a yet another module for defining constants. |
| 25 |
. |
| 26 |
Differences from constant.pm: |
| 27 |
. |
| 28 |
* Cute syntax. |
| 29 |
Like constant.pm, constants get defined at compile time, |
| 30 |
not run time. |
| 31 |
* Requires Perl 5.12 or above. |
| 32 |
If you're lucky enough to be able to free yourself |
| 33 |
from the shackles of supporting decade-old versions of Perl, |
| 34 |
PerlX::Define is your friend. |
| 35 |
* Only supports scalar constants. |
| 36 |
List constants are rarely useful. |
| 37 |
Your constant can of course be a reference to an array or hash, |
| 38 |
but this module doesn't attempt |
| 39 |
to make the referred-to structure read only. |
| 40 |
* Doesn't try to handle some of the things constant.pm does |
| 41 |
like declaring constants using fully-qualified names, |
| 42 |
or defining constants pointing at magic scalars. |
| 43 |
. |
| 44 |
Prior to version 0.100, PerlX::Define was bundled with Moops. |