conjoin
# given sub { $_[0] % 2 }
$code = $code->conjoin(sub { 1 });
$code->(0); # 0
$code->(1); # 1
$code->(2); # 0
$code->(3); # 1
$code->(4); # 0
The conjoin method creates a code reference which execute the code and the argument in a logical AND operation having the code as the lvalue and the argument as the rvalue. This method returns a Data::Object::Code object.
conjoin(CodeRef $arg1) : CodeObject
method
5 POD Errors
The following errors were encountered while parsing the POD:
- Around line 10:
Unknown directive: =name
- Around line 14:
Unknown directive: =usage
- Around line 25:
Unknown directive: =description
- Around line 31:
Unknown directive: =signature
- Around line 35:
Unknown directive: =type