in reply to Re^4: ternary conditional help
in thread ternary conditional help
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.
|
|---|