For instance, I need to match some text if $do eq \'b\'. If I run this code:
$do eq \'b\'
if (($do eq \'b\') && (/text/)) { do stuff }
It would be
if ($do eq 'b' && /text/) { do stuff }
Yes - if $do eq 'b' is false, /text/ won't be evaluated.
$do eq 'b'
/text/