全部搜尋項
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 [檔案列表]