| 1 |
Source: libtie-cycle-perl |
| 2 |
Standards-Version: 4.7.3 |
| 3 |
Maintainer: Debian Perl Group <[email protected]> |
| 4 |
Uploaders: |
| 5 |
gregor herrmann <[email protected]>, |
| 6 |
Section: perl |
| 7 |
Testsuite: autopkgtest-pkg-perl |
| 8 |
Build-Depends: |
| 9 |
debhelper-compat (= 13), |
| 10 |
Build-Depends-Indep: |
| 11 |
libtest-pod-coverage-perl <!nocheck>, |
| 12 |
libtest-pod-perl <!nocheck>, |
| 13 |
perl, |
| 14 |
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libtie-cycle-perl |
| 15 |
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libtie-cycle-perl.git |
| 16 |
Homepage: https://metacpan.org/release/Tie-Cycle |
| 17 |
|
| 18 |
Package: libtie-cycle-perl |
| 19 |
Architecture: all |
| 20 |
Multi-Arch: foreign |
| 21 |
Depends: |
| 22 |
${misc:Depends}, |
| 23 |
${perl:Depends}, |
| 24 |
Description: module for cycling through a list of values via a scalar |
| 25 |
You use Tie::Cycle to go through a list over and over again. Once you get to |
| 26 |
the end of the list, you go back to the beginning. You don't have to worry |
| 27 |
about any of this since the magic of tie does that for you. |
| 28 |
. |
| 29 |
The tie takes an array reference as its third argument. The tie should |
| 30 |
succeed unless the argument is not an array reference. Previous versions |
| 31 |
required you to use an array that had more than one element (what's the |
| 32 |
pointing of looping otherwise?), but I've removed that restriction since the |
| 33 |
number of elements you want to use may change depending on the situation. |
| 34 |
. |
| 35 |
During the tie, this module makes a shallow copy of the array reference. If |
| 36 |
the array reference contains references, and those references are changed |
| 37 |
after the tie, the elements of the cycle will change as well. See the |
| 38 |
included test.pl script for an example of this effect. |