The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

SPVM::Bool - Bool Utility

SYNOPSYS

  my $bool_object_true = SPVM::Bool->new_true;
  my $bool_object_false = SPVM::Bool->new_false;
  
  my $bool_value = $bool_object_true->val;

CONSTRUCTOR

new_true

  sub new_true : SPVM::Bool ()

Create SPVM::Bool object with true value.

new_false

  sub new_false : SPVM::Bool ()

Create SPVM::Bool object with false value.

METHODS

val

  sub val : int ($self : self)

If Bool object has true value, return 1, else return 0.