Hi,

Here is the sample code:

sub a {
print "i am a\n";
return 0;
}

sub b {
print "i am b\n";
return 1;
}

if (a() && b()) {
print "yes\n";
} else {
print "no\n";
}



I want both the subroutine to be executed, and then i want print some
statements depending upon both the results.
here if a() returns "0" then b() was not getting executed.

is there any other way to do this check?

Reply via email to