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 );
In reply to Re^4: Confused by Perl ternary operator
by diotalevi
in thread Confused by Perl ternary operator
by newest_newbie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |