File: control

package info (click to toggle)
libperlx-maybe-perl 1.202-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 184 kB
  • sloc: perl: 155; makefile: 2
file content (39 lines) | stat: -rw-r--r-- 1,510 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Source: libperlx-maybe-perl
Section: perl
Priority: optional
Build-Depends: debhelper-compat (= 13),
 perl,
 libmodule-manifest-skip-perl
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Uploaders: Jonas Smedegaard <dr@jones.dk>, Florian Schlichting <fsfs@debian.org>
Standards-Version: 4.6.0
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libperlx-maybe-perl.git
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libperlx-maybe-perl
Homepage: https://metacpan.org/release/PerlX-Maybe
Testsuite: autopkgtest-pkg-perl
Rules-Requires-Root: no

Package: libperlx-maybe-perl
Architecture: all
Depends: ${misc:Depends}, ${perl:Depends},
 libmodule-manifest-skip-perl
Recommends: libperlx-maybe-xs-perl, libexporter-tiny-perl
Suggests: libsyntax-perl
Description: return a pair only if they are both defined
 Moose classes (and some other classes) distinguish between an attribute
 being unset and the attribute being set to undef. Supplying a
 constructor arguments like this:
 .
     my $bob = Person->new(
        name => $name,
        age => $age,
        );
 .
 Will result in the "name" and "age" attributes possibly being set to
 undef (if the corresponding $name and $age variables are not defined),
 which may violate the Person class' type constraints.
 .
 PerlX::Maybe checks that $x and $y are both defined. If they are, it
 returns them both as a list; otherwise it returns the empty list.
 .
 This package also includes Syntax::Feature::Maybe.