Venus::Undef
Undef Class
Undef Class for Perl 5
method: cast method: default method: eq method: ge method: gele method: gt method: gtlt method: le method: lt method: ne method: new method: numified method: stringified method: tv
package main;
use Venus::Undef;
my $undef = Venus::Undef->new;
# $undef->defined;
This package provides methods for manipulating undef data.
Venus::Kind::Value
The cast method converts "value" objects between different "value" object types, based on the name of the type provided. This method will return undef if the invocant is not a Venus::Kind::Value.
cast(string $kind) (object | undef)
{ since => '0.08', }
=example-1 cast
package main;
use Venus::Undef;
my $undef = Venus::Undef->new;
my $cast = $undef->cast('array');
# bless({ value => [undef] }, "Venus::Array")
The default method returns the default value, i.e. undef.
default() (undef)
{ since => '0.01', }
=example-1 default
# given: synopsis;
my $default = $undef->default;
# undef
The eq method performs an "equals" operation using the argument provided.
eq(any $arg) (boolean)
{ since => '0.08', }
=example-1 eq
package main;
use Venus::Array;
use Venus::Undef;
my $lvalue = Venus::Undef->new;
my $rvalue = Venus::Array->new;
my $result = $lvalue->eq($rvalue);
# 0
The ge method performs a "greater-than-or-equal-to" operation using the argument provided.
ge(any $arg) (boolean)
{ since => '0.08', }
=example-1 ge
package main;
use Venus::Array;
use Venus::Undef;
my $lvalue = Venus::Undef->new;
my $rvalue = Venus::Array->new;
my $result = $lvalue->ge($rvalue);
# 0
The gele method performs a "greater-than-or-equal-to" operation on the 1st argument, and "lesser-than-or-equal-to" operation on the 2nd argument.
gele(any $arg1, any $arg2) (boolean)
{ since => '0.08', }
=example-1 gele
package main;
use Venus::Array;
use Venus::Undef;
my $lvalue = Venus::Undef->new;
my $rvalue = Venus::Array->new;
my $result = $lvalue->gele($rvalue);
# 0
The gt method performs a "greater-than" operation using the argument provided.
gt(any $arg) (boolean)
{ since => '0.08', }
=example-1 gt
package main;
use Venus::Array;
use Venus::Undef;
my $lvalue = Venus::Undef->new;
my $rvalue = Venus::Array->new;
my $result = $lvalue->gt($rvalue);
# 0
The gtlt method performs a "greater-than" operation on the 1st argument, and "lesser-than" operation on the 2nd argument.
gtlt(any $arg1, any $arg2) (boolean)
{ since => '0.08', }
=example-1 gtlt
package main;
use Venus::Array;
use Venus::Undef;
my $lvalue = Venus::Undef->new;
my $rvalue = Venus::Array->new;
my $result = $lvalue->gtlt($rvalue);
# 0
The le method performs a "lesser-than-or-equal-to" operation using the argument provided.
le(any $arg) (boolean)
{ since => '0.08', }
=example-1 le
package main;
use Venus::Array;
use Venus::Undef;
my $lvalue = Venus::Undef->new;
my $rvalue = Venus::Array->new;
my $result = $lvalue->le($rvalue);
# 1
The lt method performs a "lesser-than" operation using the argument provided.
lt(any $arg) (boolean)
{ since => '0.08', }
=example-1 lt
package main;
use Venus::Array;
use Venus::Undef;
my $lvalue = Venus::Undef->new;
my $rvalue = Venus::Array->new;
my $result = $lvalue->lt($rvalue);
# 1
The ne method performs a "not-equal-to" operation using the argument provided.
ne(any $arg) (boolean)
{ since => '0.08', }
=example-1 ne
package main;
use Venus::Array;
use Venus::Undef;
my $lvalue = Venus::Undef->new;
my $rvalue = Venus::Array->new;
my $result = $lvalue->ne($rvalue);
# 1
The new method constructs an instance of the package.
new(any @args) (Venus::Undef)
{ since => '4.15', }
The numified method returns the numerical representation of the object. For undef objects this method returns 0.
numified() (number)
{ since => '0.08', }
=example-1 numified
# given: synopsis;
my $numified = $undef->numified;
# 0
The stringified method always method returns ''.
stringified() (string)
{ since => '0.08', }
=example-1 stringified
# given: synopsis;
my $stringified = $undef->stringified;
# ""
The tv method performs a "type-and-value-equal-to" operation using argument provided.
tv(any $arg) (boolean)
{ since => '0.08', }
=example-1 tv
package main;
use Venus::Array;
use Venus::Undef;
my $lvalue = Venus::Undef->new;
my $rvalue = Venus::Array->new;
my $result = $lvalue->tv($rvalue);
# 0
t/Venus.t: present: authors t/Venus.t: present: license
132 POD Errors
The following errors were encountered while parsing the POD:
- Around line 14:
Unknown directive: =name
- Around line 22:
Unknown directive: =tagline
- Around line 30:
Unknown directive: =abstract
- Around line 38:
Unknown directive: =includes
- Around line 59:
Unknown directive: =synopsis
- Around line 78:
Unknown directive: =description
- Around line 86:
Unknown directive: =inherits
- Around line 94:
Unknown directive: =method
- Around line 100:
Unknown directive: =signature
- Around line 104:
Unknown directive: =metadata
- Around line 146:
=cut found outside a pod block. Skipping to next block.
- Around line 170:
=cut found outside a pod block. Skipping to next block.
- Around line 194:
=cut found outside a pod block. Skipping to next block.
- Around line 218:
=cut found outside a pod block. Skipping to next block.
- Around line 242:
=cut found outside a pod block. Skipping to next block.
- Around line 266:
=cut found outside a pod block. Skipping to next block.
- Around line 290:
=cut found outside a pod block. Skipping to next block.
- Around line 314:
=cut found outside a pod block. Skipping to next block.
- Around line 338:
=cut found outside a pod block. Skipping to next block.
- Around line 349:
Unknown directive: =method
- Around line 353:
Unknown directive: =signature
- Around line 357:
Unknown directive: =metadata
- Around line 381:
Unknown directive: =method
- Around line 385:
Unknown directive: =signature
- Around line 389:
Unknown directive: =metadata
- Around line 433:
=cut found outside a pod block. Skipping to next block.
- Around line 457:
=cut found outside a pod block. Skipping to next block.
- Around line 481:
=cut found outside a pod block. Skipping to next block.
- Around line 505:
=cut found outside a pod block. Skipping to next block.
- Around line 529:
=cut found outside a pod block. Skipping to next block.
- Around line 553:
=cut found outside a pod block. Skipping to next block.
- Around line 577:
=cut found outside a pod block. Skipping to next block.
- Around line 600:
=cut found outside a pod block. Skipping to next block.
- Around line 610:
Unknown directive: =method
- Around line 615:
Unknown directive: =signature
- Around line 619:
Unknown directive: =metadata
- Around line 663:
=cut found outside a pod block. Skipping to next block.
- Around line 687:
=cut found outside a pod block. Skipping to next block.
- Around line 711:
=cut found outside a pod block. Skipping to next block.
- Around line 735:
=cut found outside a pod block. Skipping to next block.
- Around line 759:
=cut found outside a pod block. Skipping to next block.
- Around line 783:
=cut found outside a pod block. Skipping to next block.
- Around line 807:
=cut found outside a pod block. Skipping to next block.
- Around line 830:
=cut found outside a pod block. Skipping to next block.
- Around line 840:
Unknown directive: =method
- Around line 845:
Unknown directive: =signature
- Around line 849:
Unknown directive: =metadata
- Around line 893:
=cut found outside a pod block. Skipping to next block.
- Around line 917:
=cut found outside a pod block. Skipping to next block.
- Around line 941:
=cut found outside a pod block. Skipping to next block.
- Around line 965:
=cut found outside a pod block. Skipping to next block.
- Around line 989:
=cut found outside a pod block. Skipping to next block.
- Around line 1013:
=cut found outside a pod block. Skipping to next block.
- Around line 1037:
=cut found outside a pod block. Skipping to next block.
- Around line 1060:
=cut found outside a pod block. Skipping to next block.
- Around line 1070:
Unknown directive: =method
- Around line 1074:
Unknown directive: =signature
- Around line 1078:
Unknown directive: =metadata
- Around line 1122:
=cut found outside a pod block. Skipping to next block.
- Around line 1146:
=cut found outside a pod block. Skipping to next block.
- Around line 1170:
=cut found outside a pod block. Skipping to next block.
- Around line 1194:
=cut found outside a pod block. Skipping to next block.
- Around line 1218:
=cut found outside a pod block. Skipping to next block.
- Around line 1242:
=cut found outside a pod block. Skipping to next block.
- Around line 1266:
=cut found outside a pod block. Skipping to next block.
- Around line 1289:
=cut found outside a pod block. Skipping to next block.
- Around line 1299:
Unknown directive: =method
- Around line 1304:
Unknown directive: =signature
- Around line 1308:
Unknown directive: =metadata
- Around line 1352:
=cut found outside a pod block. Skipping to next block.
- Around line 1376:
=cut found outside a pod block. Skipping to next block.
- Around line 1400:
=cut found outside a pod block. Skipping to next block.
- Around line 1424:
=cut found outside a pod block. Skipping to next block.
- Around line 1448:
=cut found outside a pod block. Skipping to next block.
- Around line 1472:
=cut found outside a pod block. Skipping to next block.
- Around line 1496:
=cut found outside a pod block. Skipping to next block.
- Around line 1519:
=cut found outside a pod block. Skipping to next block.
- Around line 1529:
Unknown directive: =method
- Around line 1534:
Unknown directive: =signature
- Around line 1538:
Unknown directive: =metadata
- Around line 1582:
=cut found outside a pod block. Skipping to next block.
- Around line 1606:
=cut found outside a pod block. Skipping to next block.
- Around line 1630:
=cut found outside a pod block. Skipping to next block.
- Around line 1654:
=cut found outside a pod block. Skipping to next block.
- Around line 1678:
=cut found outside a pod block. Skipping to next block.
- Around line 1702:
=cut found outside a pod block. Skipping to next block.
- Around line 1726:
=cut found outside a pod block. Skipping to next block.
- Around line 1749:
=cut found outside a pod block. Skipping to next block.
- Around line 1759:
Unknown directive: =method
- Around line 1763:
Unknown directive: =signature
- Around line 1767:
Unknown directive: =metadata
- Around line 1811:
=cut found outside a pod block. Skipping to next block.
- Around line 1835:
=cut found outside a pod block. Skipping to next block.
- Around line 1859:
=cut found outside a pod block. Skipping to next block.
- Around line 1883:
=cut found outside a pod block. Skipping to next block.
- Around line 1907:
=cut found outside a pod block. Skipping to next block.
- Around line 1931:
=cut found outside a pod block. Skipping to next block.
- Around line 1955:
=cut found outside a pod block. Skipping to next block.
- Around line 1978:
=cut found outside a pod block. Skipping to next block.
- Around line 1988:
Unknown directive: =method
- Around line 1992:
Unknown directive: =signature
- Around line 1996:
Unknown directive: =metadata
- Around line 2040:
=cut found outside a pod block. Skipping to next block.
- Around line 2064:
=cut found outside a pod block. Skipping to next block.
- Around line 2088:
=cut found outside a pod block. Skipping to next block.
- Around line 2112:
=cut found outside a pod block. Skipping to next block.
- Around line 2136:
=cut found outside a pod block. Skipping to next block.
- Around line 2160:
=cut found outside a pod block. Skipping to next block.
- Around line 2184:
=cut found outside a pod block. Skipping to next block.
- Around line 2207:
=cut found outside a pod block. Skipping to next block.
- Around line 2217:
Unknown directive: =method
- Around line 2221:
Unknown directive: =signature
- Around line 2225:
Unknown directive: =metadata
- Around line 2243:
=cut found outside a pod block. Skipping to next block.
- Around line 2253:
Unknown directive: =method
- Around line 2258:
Unknown directive: =signature
- Around line 2262:
Unknown directive: =metadata
- Around line 2286:
Unknown directive: =method
- Around line 2290:
Unknown directive: =signature
- Around line 2294:
Unknown directive: =metadata
- Around line 2318:
Unknown directive: =method
- Around line 2323:
Unknown directive: =signature
- Around line 2327:
Unknown directive: =metadata
- Around line 2371:
=cut found outside a pod block. Skipping to next block.
- Around line 2395:
=cut found outside a pod block. Skipping to next block.
- Around line 2419:
=cut found outside a pod block. Skipping to next block.
- Around line 2443:
=cut found outside a pod block. Skipping to next block.
- Around line 2467:
=cut found outside a pod block. Skipping to next block.
- Around line 2491:
=cut found outside a pod block. Skipping to next block.
- Around line 2515:
=cut found outside a pod block. Skipping to next block.
- Around line 2538:
=cut found outside a pod block. Skipping to next block.
- Around line 2548:
Unknown directive: =partials