Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: conditional statements in list constructors

by Anonymous Monk
on Mar 27, 2014 at 14:08 UTC ( #1079931=note: print w/replies, xml ) Need Help??


in reply to conditional statements in list constructors

from my examples here, I summise that the tertiary conditional is an if statement(term/expression), wrapped in a do block. Is this the case?

B::Concise may reveal if they resolve to the same opcodes ... if they're the same :)

shotgun

Ternary operator (there's no Trinary operator ), To Trinary or not to Ternary, (mini-if ternary), Re^2: Two simple code style advice questions (tye), ternary operator as lvalue failing to induce evaluation of right-hand expression in list context
Multiple if-else statements using C-style ternary operator
Perl ternary operator style
Question about ternary operator

  • Comment on Re: conditional statements in list constructors

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1079931]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2022-05-28 12:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (99 votes). Check out past polls.

    Notices?