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

    No shit Sherlock!


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.