Debugging. Type 1 has an additional break point that type 2 does not:
Now, the examples are very trivial, but i really have picked a more verbose style over another just so i could debug easier -- verbose can still be terse with Perl, though. ;)# conditional type1 if ($x1) { warn "x1 was true\n"; if ($x2) { warn "x2 was true\n"; print "here\n"; } } # conditional type2 if ($x1 && $x2) { warn "well, they were both true ... still don't see the bug\n"; print "here\n"; }
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In reply to Re: Any difference in conditionals?
by jeffa
in thread Any difference in conditionals?
by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |