SPVM::Bool - Bool in SPVM | Bool object
use Bool; my $true = Bool->true; my $false = Bool->false; my $true_value = $true->value; my $false_value = $false->value;
Bool object stores a long value.
long
This object is immutable and its value cannot be changed.
Bool is automatically loaded just after the program starts.
static method true : Bool ()
true singleton. This is created by INIT block when the program start.
static method false : Bool ()
false singleton. This is created by INIT block when the program start.
method value : int ()
Return a int value.
int
If Bool object express true, this method return 1.
1
If Bool object express false, this method return 1.
To install SPVM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM
CPAN shell
perl -MCPAN -e shell install SPVM
For more information on module installation, please visit the detailed CPAN module installation guide.