Maybe this is clearer?
for (1..5) { print if eval{ do_foo() && do_bar() } or do{ warn $@; 0 }; }
As an aside it strikes me that warn and die ought to return false.
In reply to Re: "next" from within eval {} ?
by BrowserUk
in thread "next" from within eval {} ?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |