- or download this
use overload
'0+' => sub { ${$_[0]} },
'""' => sub { ${$_[0]} ? "true" : "false"},
'!' => sub { ${$_[0]} ? $false : $true },
fallback => 1;
- or download this
use boolean;
$\ = $/;
...
print '$str_true is true but != from true' if $str_true and ($str_true
+ != true);
print "The value of this test is: ", boolean(true||false);
- or download this
$false is false
$copy is also false
$str_false is true?
But equal to false
$str_true is true but != from true
The value of this test is: true