Debian Codegraph @

debian/control

raw
1 Source: libscalar-listify-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 Build-Depends-Indep: perl
8 Standards-Version: 3.9.5
9 Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libscalar-listify-perl
10 Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libscalar-listify-perl.git
11 Homepage: https://metacpan.org/release/Scalar-Listify
12
13 Package: libscalar-listify-perl
14 Architecture: all
15 Depends: ${misc:Depends},
16 ${perl:Depends}
17 Multi-Arch: foreign
18 Description: module that produces an array/arrayref from a scalar value or array ref
19 A lot of Perl code ends up with scalars having either a single scalar value
20 or a reference to an array of scalar values. In order to handle the two
21 conditions, one must check for what is in the scalar value before getting on
22 with one's task. Ie:
23 .
24 $text_scalar = 'text';
25 .
26 $aref_scalar = [ 1.. 5 ];
27 .
28 print ref($text_scalar) ? (join ':', @$text_scalar) : $text_scalar;