(43 > $x ? sub { print 'Yes, '; print 'it is!'; } : sub { print 'No, '; print 'it is not!'; } )->();
In reply to Re^4: Code blocks with ternary operator or trailing conditionals
by choroba
in thread Code blocks with ternary operator or trailing conditionals
by puterboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |