in reply to Re^3: Evaluating the condition ($x ||= $y)
in thread Evaluating the condition ($x)

It not even Perl's only ternary operator.

???

  • Comment on Re^4: Evaluating the condition ($x ||= $y)

Replies are listed 'Best First'.
Re^5: Evaluating the condition ($x ||= $y)
by ikegami (Patriarch) on Aug 26, 2024 at 13:42 UTC

    While it's Perl only infix ternary operators, Perl has circumfix ternary operators. dbmopen, for one.

    I would argue that the substitution and translate operators have three operands as well (pattern, replacement and flags).