| 1 |
Source: libtie-toobject-perl |
| 2 |
Maintainer: Debian Perl Group <[email protected]> |
| 3 |
Uploaders: gregor herrmann <[email protected]> |
| 4 |
Section: perl |
| 5 |
Rules-Requires-Root: no |
| 6 |
Testsuite: autopkgtest-pkg-perl |
| 7 |
Priority: optional |
| 8 |
Build-Depends: debhelper-compat (= 13) |
| 9 |
Build-Depends-Indep: perl | libtest-simple-perl | libtest-use-ok-perl, |
| 10 |
perl |
| 11 |
Standards-Version: 4.1.3 |
| 12 |
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libtie-toobject-perl |
| 13 |
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libtie-toobject-perl.git |
| 14 |
Homepage: https://metacpan.org/release/Tie-ToObject |
| 15 |
|
| 16 |
Package: libtie-toobject-perl |
| 17 |
Architecture: all |
| 18 |
Depends: ${misc:Depends}, |
| 19 |
${perl:Depends} |
| 20 |
Multi-Arch: foreign |
| 21 |
Description: module for tying to an existing object |
| 22 |
While perldoc/tie allows tying to an arbitrary object, the class in question |
| 23 |
must support this in it's implementation of TIEHASH, TIEARRAY or |
| 24 |
whatever. |
| 25 |
. |
| 26 |
Tie::ToObject class provides a very tie constructor that simply returns the |
| 27 |
object it was given as it's first argument. This way side effects of calling |
| 28 |
$object->TIEHASH are avoided. |
| 29 |
. |
| 30 |
This is used in Data::Visitor in order to tie a variable to an already |
| 31 |
existing object. This is also useful for cloning, when you want to clone the |
| 32 |
internal state object instead of going through the tie interface for that |
| 33 |
variable. |