Debian Codegraph @

debian/control

raw
1 Source: libperlx-maybe-perl
2 Section: perl
3 Priority: optional
4 Build-Depends: debhelper-compat (= 13),
5 perl,
6 libmodule-manifest-skip-perl
7 Maintainer: Debian Perl Group <[email protected]>
8 Uploaders: Jonas Smedegaard <[email protected]>, Florian Schlichting <[email protected]>
9 Standards-Version: 4.6.0
10 Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libperlx-maybe-perl.git
11 Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libperlx-maybe-perl
12 Homepage: https://metacpan.org/release/PerlX-Maybe
13 Testsuite: autopkgtest-pkg-perl
14 Rules-Requires-Root: no
15
16 Package: libperlx-maybe-perl
17 Architecture: all
18 Depends: ${misc:Depends}, ${perl:Depends},
19 libmodule-manifest-skip-perl
20 Recommends: libperlx-maybe-xs-perl, libexporter-tiny-perl
21 Suggests: libsyntax-perl
22 Description: return a pair only if they are both defined
23 Moose classes (and some other classes) distinguish between an attribute
24 being unset and the attribute being set to undef. Supplying a
25 constructor arguments like this:
26 .
27 my $bob = Person->new(
28 name => $name,
29 age => $age,
30 );
31 .
32 Will result in the "name" and "age" attributes possibly being set to
33 undef (if the corresponding $name and $age variables are not defined),
34 which may violate the Person class' type constraints.
35 .
36 PerlX::Maybe checks that $x and $y are both defined. If they are, it
37 returns them both as a list; otherwise it returns the empty list.
38 .
39 This package also includes Syntax::Feature::Maybe.