全部搜索项
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ 源代码: libperlx-maybe-perl  ]

软件包:libperlx-maybe-perl(1.202-1)

libperlx-maybe-perl 的相关链接

Screenshot

Debian 的资源:

下载源码包 libperlx-maybe-perl

维护小组:

外部的资源:

相似软件包:

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.

标签: 软件开发: Perl 开发, 函数库, 实做语言: Perl

其他与 libperlx-maybe-perl 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • 增强

下载 libperlx-maybe-perl

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 13.8 kB38.0 kB [文件列表]