Skip to content
Sections
>> Trisquel >> 软件包 >> etiona >> perl >> libobject-declare-perl
etiona  ] [  nabia  ] [  aramo  ]
[ 源代码: libobject-declare-perl  ]

软件包: libobject-declare-perl (0.23-1)

declarative object constructor

Object::Declare exports one function, declare, for building named objects with a declarative syntax, similar to how Jifty::DBI::Schema defines its columns.

In list context, declare returns a list of name/object pairs in the order of declaration (allowing duplicates), suitable for putting into a hash. In scalar context, declare returns a hash reference.

Example: function for defining some declarative object

 sub do_declare { declare {
     column x =>
         is rw,
         is Very::Happy;
     } };

其他与 libobject-declare-perl 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • dep: libsub-override-perl
    Perl module used to temporarily override subroutines
  • dep: perl
    Larry Wall's Practical Extraction and Report Language

下载 libobject-declare-perl

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