Rserve::REXP::Null - the R null object
use Rserve::REXP;
my $null = Rserve::REXP::Null->new;
say $rexp->is_null;
print $rexp->to_perl;
An object of this class represents the null R object (NILSXP
). The null object does not have a value or attributes, and trying to set them will cause an exception.
Rserve::REXP::Null
inherits from Rserve::REXP and adds no methods of its own.
SEXPTYPE of null objects is NILSXP
.
The Perl value of NULL
is undef
.
Null objects have no attributes, so the attributes accessor always returns undef
.