What I'd like to do is check each element of @tmp one by one, and if it meets a conditionA, move on and begin looking at the next element of the array. This isn't working, however. I get the conditionB check whether or not conditionA is met. Thanks in advance - I know this is probably a stupid question.foreach(@tmp) { if (conditionA) { next; } elsif (conditionB) { &do_something; } }
In reply to loop control by Galen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |