This is because the entire expression is evaluated before being passed as arguments to print
No, the arguments are placed on the stack as they are evaluated.
@_ isn't even constructed here since print is an operator, not a sub.
The reason you get the observed behaviour is that $a itself (not a copy of it) is placed on the stack.
In reply to Re^5: ternary conditional help
by ikegami
in thread ternary conditional help
by opaltoot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |