in reply to Re: Ternary Operator with Subroutine
in thread Ternary Operator with Subroutine
The statement…
( my $test ) ? print 'c' : do{ print 'a'; print 'b' };
…is much better written…
print 'a'; print 'b';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Ternary Operator with Subroutine
by BrowserUk (Patriarch) on Aug 14, 2011 at 17:39 UTC |