new
my $bool;
$bool = Data::Object::Boolean->new; # false
$bool = Data::Object::Boolean->new(1); # true
$bool = Data::Object::Boolean->new(0); # false
$bool = Data::Object::Boolean->new(''); # false
$bool = Data::Object::Boolean->new(undef); # false
The new method returns a boolean object based on the value of the argument provided.
new(Any $arg) : Object
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 24:
Unknown directive: =description
- Around line 29:
Unknown directive: =signature
- Around line 33:
Unknown directive: =type