Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^5: Ternary operators: a hinderance, not a help

by Anonymous Monk
on Aug 10, 2005 at 10:11 UTC ( [id://482553]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Ternary operators: a hinderance, not a help
in thread Ternary operators: a hinderance, not a help

That isn't exactly new. In ALGOL 68 (and perhaps earlier versions as well), you could do:
IF a THEN b ELSE c FI := IF d THEN e ELSE f FI
more or less equivalent to Perls:
($a ? $b : $c) = ($d ? $e : $f);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-26 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found