| 1 |
Source: libtie-refhash-weak-perl |
| 2 |
Section: perl |
| 3 |
Priority: optional |
| 4 |
Build-Depends: debhelper (>= 11) |
| 5 |
Build-Depends-Indep: libtask-weaken-perl, libvariable-magic-perl, |
| 6 |
perl |
| 7 |
Maintainer: Debian Perl Group <[email protected]> |
| 8 |
Uploaders: Damyan Ivanov <[email protected]> |
| 9 |
Standards-Version: 4.1.5 |
| 10 |
Homepage: https://metacpan.org/release/Tie-RefHash-Weak |
| 11 |
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libtie-refhash-weak-perl.git |
| 12 |
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libtie-refhash-weak-perl |
| 13 |
Testsuite: autopkgtest-pkg-perl |
| 14 |
|
| 15 |
Package: libtie-refhash-weak-perl |
| 16 |
Architecture: all |
| 17 |
Depends: ${misc:Depends}, ${perl:Depends}, libtask-weaken-perl, |
| 18 |
libvariable-magic-perl |
| 19 |
Description: Tie::RefHash subclass with weakened references in the keys |
| 20 |
Tie::RefHash can be used to access hashes by reference. This is useful when |
| 21 |
you index by object, for example. |
| 22 |
. |
| 23 |
The problem with Tie::RefHash, and cross indexing, is that sometimes the |
| 24 |
index should not contain strong references to the objecs. The internal |
| 25 |
structures of Tie::RefHash contain strong references to the key, and provide |
| 26 |
no convenient means to make those references weak. |
| 27 |
. |
| 28 |
Tie::RefHash::Weak has weak keys, instead of strong ones. The values are left |
| 29 |
unaltered, and you'll have to make sure there are no strong references there |
| 30 |
yourself. |