- or download this
int
MyLib::strToInt(passfail)
...
OUTPUT:
RETVAL
passfail
- or download this
my $passfail = 0;
my $tmp = MyLib->new("12");
my $t = $tmp->strToInt(\$passfail);
print "It's $t\n" if $passfail eq 1;
- or download this
It's false in xs. 0
It's true out xs. 1