Load from memory, ALU operation to set flags, jump on flags that were just set.
FWIW, in some CPUs, the load instructions will also set/clear the "zero" and "negative" flags.
You are right. As a rule, today's optimizing compilers are very good at producing (near) best machine code.
With Perl, I'd say just write the most understandable and maintainable code you can.
In reply to Re^5: next unless condition
by RonW
in thread next unless condition
by hankcoder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |