| 1 | Source: librelative-perl |
| 2 | Maintainer: Debian Perl Group <[email protected]> |
| 3 | Section: perl |
| 4 | Testsuite: autopkgtest-pkg-perl |
| 5 | Priority: optional |
| 6 | Build-Depends: debhelper-compat (= 13), |
| 7 | libmodule-build-perl, |
| 8 | perl |
| 9 | Build-Depends-Indep: libuniversal-require-perl, |
| 10 | libtest-pod-perl, |
| 11 | libtest-pod-coverage-perl |
| 12 | Standards-Version: 3.9.6 |
| 13 | Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/librelative-perl |
| 14 | Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/librelative-perl.git |
| 15 | Homepage: https://metacpan.org/release/relative |
| 16 | |
| 17 | Package: librelative-perl |
| 18 | Architecture: all |
| 19 | Depends: ${perl:Depends}, |
| 20 | ${misc:Depends}, |
| 21 | libuniversal-require-perl |
| 22 | Multi-Arch: foreign |
| 23 | Description: Load modules with relative names |
| 24 | This module allows you to load modules using only parts of their name, |
| 25 | relatively to the current module or to a given module. Module names are |
| 26 | by default searched below the current module, but can be searched upper |
| 27 | in the hierarchy using the ..:: syntax. |
| 28 | . |
| 29 | In order to further loosen the namespace coupling, import returns |
| 30 | the full names of the loaded modules, making object-oriented code easier |
| 31 | to write: |
| 32 | . |
| 33 | use relative; |
| 34 | . |
| 35 | my ($Maker, $Publisher) = import relative qw(Create Publish); |
| 36 | my $report = $Maker->new; |
| 37 | my $publisher = $Publisher->new; |