in reply to Re^2: next unless condition
in thread next unless condition
Hi lbe,
Yes, $cell || next; is yet another one to add to the list of ways to do it :-) (Although it's probably easier to get bitten by precedence issues on that one so personally, I'd avoid it.)
if (...) {...} is definitely what I'd use if the condition or the statement becomes more complex. For example, I've often written code something like if ($x && $y) { warn "skipping b/c foo"; next }
Regards,
-- Hauke D
|
|---|