in reply to Re^3: Confused by Perl ternary operator
in thread Confused by Perl ternary operator

I was thinking that someone might use that expression that reads and writes to @_ inside another expression that depends on whether @_ has already been fetched or altered. ?: isn't just if/else, its an expression which can be used inside other expressions.

$join = ( @_ ? "Argument, the first" : shift ) . ( @_ ? "Argument, the second" : shift );