note
ysth
<blockquote>
Any contextual effects happening at compile time would be optimizations requiring extra code so I'm not surprised that I couldn't find any cases of that. It would also require some static analysis of the parsed code to even determine if the context can be known at compile time. This type of static analysis is pretty rare in perl.
</blockquote>
But that analysis is exactly what happens - the syntax tree is descended and every operation applies context (or doesn't) to its operands, marking then as having list, scalar, or void context as determined by the operation. Then anything left unmarked gets context from the call stack at runtime.
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-299049">
<small>-- <br />
A math joke: r = | |csc(θ)|+|sec(θ)|-||csc(θ)|-|sec(θ)|| |<br />
[http://ysth.info/fortune/|Online Fortune Cookie Search]<br />
[http://ysth.info/initech/|Office Space merchandise]
</small>
</div></div>
72247
663493