The statement…
( my $test ) ? print 'c' : do{ print 'a'; print 'b' };
…is much better written…
print 'a'; print 'b';
In reply to Re^2: Ternary Operator with Subroutine
by Jim
in thread Ternary Operator with Subroutine
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |