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: 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 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

128 POD Errors

The following errors were encountered while parsing the POD:

Around line 13:

Unknown directive: =name

Around line 21:

Unknown directive: =tagline

Around line 29:

Unknown directive: =abstract

Around line 37:

Unknown directive: =includes

Around line 57:

Unknown directive: =synopsis

Around line 76:

Unknown directive: =description

Around line 84:

Unknown directive: =inherits

Around line 92:

Unknown directive: =method

Around line 98:

Unknown directive: =signature

Around line 102:

Unknown directive: =metadata

Around line 144:

=cut found outside a pod block. Skipping to next block.

Around line 168:

=cut found outside a pod block. Skipping to next block.

Around line 192:

=cut found outside a pod block. Skipping to next block.

Around line 216:

=cut found outside a pod block. Skipping to next block.

Around line 240:

=cut found outside a pod block. Skipping to next block.

Around line 264:

=cut found outside a pod block. Skipping to next block.

Around line 288:

=cut found outside a pod block. Skipping to next block.

Around line 312:

=cut found outside a pod block. Skipping to next block.

Around line 336:

=cut found outside a pod block. Skipping to next block.

Around line 347:

Unknown directive: =method

Around line 351:

Unknown directive: =signature

Around line 355:

Unknown directive: =metadata

Around line 379:

Unknown directive: =method

Around line 383:

Unknown directive: =signature

Around line 387:

Unknown directive: =metadata

Around line 431:

=cut found outside a pod block. Skipping to next block.

Around line 455:

=cut found outside a pod block. Skipping to next block.

Around line 479:

=cut found outside a pod block. Skipping to next block.

Around line 503:

=cut found outside a pod block. Skipping to next block.

Around line 527:

=cut found outside a pod block. Skipping to next block.

Around line 551:

=cut found outside a pod block. Skipping to next block.

Around line 575:

=cut found outside a pod block. Skipping to next block.

Around line 598:

=cut found outside a pod block. Skipping to next block.

Around line 608:

Unknown directive: =method

Around line 613:

Unknown directive: =signature

Around line 617:

Unknown directive: =metadata

Around line 661:

=cut found outside a pod block. Skipping to next block.

Around line 685:

=cut found outside a pod block. Skipping to next block.

Around line 709:

=cut found outside a pod block. Skipping to next block.

Around line 733:

=cut found outside a pod block. Skipping to next block.

Around line 757:

=cut found outside a pod block. Skipping to next block.

Around line 781:

=cut found outside a pod block. Skipping to next block.

Around line 805:

=cut found outside a pod block. Skipping to next block.

Around line 828:

=cut found outside a pod block. Skipping to next block.

Around line 838:

Unknown directive: =method

Around line 843:

Unknown directive: =signature

Around line 847:

Unknown directive: =metadata

Around line 891:

=cut found outside a pod block. Skipping to next block.

Around line 915:

=cut found outside a pod block. Skipping to next block.

Around line 939:

=cut found outside a pod block. Skipping to next block.

Around line 963:

=cut found outside a pod block. Skipping to next block.

Around line 987:

=cut found outside a pod block. Skipping to next block.

Around line 1011:

=cut found outside a pod block. Skipping to next block.

Around line 1035:

=cut found outside a pod block. Skipping to next block.

Around line 1058:

=cut found outside a pod block. Skipping to next block.

Around line 1068:

Unknown directive: =method

Around line 1072:

Unknown directive: =signature

Around line 1076:

Unknown directive: =metadata

Around line 1120:

=cut found outside a pod block. Skipping to next block.

Around line 1144:

=cut found outside a pod block. Skipping to next block.

Around line 1168:

=cut found outside a pod block. Skipping to next block.

Around line 1192:

=cut found outside a pod block. Skipping to next block.

Around line 1216:

=cut found outside a pod block. Skipping to next block.

Around line 1240:

=cut found outside a pod block. Skipping to next block.

Around line 1264:

=cut found outside a pod block. Skipping to next block.

Around line 1287:

=cut found outside a pod block. Skipping to next block.

Around line 1297:

Unknown directive: =method

Around line 1302:

Unknown directive: =signature

Around line 1306:

Unknown directive: =metadata

Around line 1350:

=cut found outside a pod block. Skipping to next block.

Around line 1374:

=cut found outside a pod block. Skipping to next block.

Around line 1398:

=cut found outside a pod block. Skipping to next block.

Around line 1422:

=cut found outside a pod block. Skipping to next block.

Around line 1446:

=cut found outside a pod block. Skipping to next block.

Around line 1470:

=cut found outside a pod block. Skipping to next block.

Around line 1494:

=cut found outside a pod block. Skipping to next block.

Around line 1517:

=cut found outside a pod block. Skipping to next block.

Around line 1527:

Unknown directive: =method

Around line 1532:

Unknown directive: =signature

Around line 1536:

Unknown directive: =metadata

Around line 1580:

=cut found outside a pod block. Skipping to next block.

Around line 1604:

=cut found outside a pod block. Skipping to next block.

Around line 1628:

=cut found outside a pod block. Skipping to next block.

Around line 1652:

=cut found outside a pod block. Skipping to next block.

Around line 1676:

=cut found outside a pod block. Skipping to next block.

Around line 1700:

=cut found outside a pod block. Skipping to next block.

Around line 1724:

=cut found outside a pod block. Skipping to next block.

Around line 1747:

=cut found outside a pod block. Skipping to next block.

Around line 1757:

Unknown directive: =method

Around line 1761:

Unknown directive: =signature

Around line 1765:

Unknown directive: =metadata

Around line 1809:

=cut found outside a pod block. Skipping to next block.

Around line 1833:

=cut found outside a pod block. Skipping to next block.

Around line 1857:

=cut found outside a pod block. Skipping to next block.

Around line 1881:

=cut found outside a pod block. Skipping to next block.

Around line 1905:

=cut found outside a pod block. Skipping to next block.

Around line 1929:

=cut found outside a pod block. Skipping to next block.

Around line 1953:

=cut found outside a pod block. Skipping to next block.

Around line 1976:

=cut found outside a pod block. Skipping to next block.

Around line 1986:

Unknown directive: =method

Around line 1990:

Unknown directive: =signature

Around line 1994:

Unknown directive: =metadata

Around line 2038:

=cut found outside a pod block. Skipping to next block.

Around line 2062:

=cut found outside a pod block. Skipping to next block.

Around line 2086:

=cut found outside a pod block. Skipping to next block.

Around line 2110:

=cut found outside a pod block. Skipping to next block.

Around line 2134:

=cut found outside a pod block. Skipping to next block.

Around line 2158:

=cut found outside a pod block. Skipping to next block.

Around line 2182:

=cut found outside a pod block. Skipping to next block.

Around line 2205:

=cut found outside a pod block. Skipping to next block.

Around line 2215:

Unknown directive: =method

Around line 2220:

Unknown directive: =signature

Around line 2224:

Unknown directive: =metadata

Around line 2248:

Unknown directive: =method

Around line 2252:

Unknown directive: =signature

Around line 2256:

Unknown directive: =metadata

Around line 2280:

Unknown directive: =method

Around line 2285:

Unknown directive: =signature

Around line 2289:

Unknown directive: =metadata

Around line 2333:

=cut found outside a pod block. Skipping to next block.

Around line 2357:

=cut found outside a pod block. Skipping to next block.

Around line 2381:

=cut found outside a pod block. Skipping to next block.

Around line 2405:

=cut found outside a pod block. Skipping to next block.

Around line 2429:

=cut found outside a pod block. Skipping to next block.

Around line 2453:

=cut found outside a pod block. Skipping to next block.

Around line 2477:

=cut found outside a pod block. Skipping to next block.

Around line 2500:

=cut found outside a pod block. Skipping to next block.

Around line 2510:

Unknown directive: =partials