But the op wants 5 and that the part outside the eval is not executed expect when that is false.sub that { 5 } sub xx{ eval { return that() || die }; 1 } print xx; __OUTPUT__ 1
In reply to Re^3: looking for a good idiom: return this if this is true
by borisz
in thread looking for a good idiom: return this if this is true
by merlyn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |