For instance, I need to match some text if $do eq 'b'
.
If I run this code:
if (($do eq 'b') && (/text/))
{
do stuff
}
Would perl evaluate the first parenthesis and second parenthesis no matter what or would it stop at the evaluation of the second parenthesis if the first parenthesis was false?
Follow-up question here. (I didn't know if I should make a new question or post it here)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…