note
Fletch
<p>
You're prossibly interested in watch expressions set with something along the lines of <c>w $var</c> which will show the old and new value whenever the watched expression changes values (and that can be an expression, not just a single variable; whenever the value of that expression is different the watch triggers). There's not much extra detail in the docs but if you search [doc://perldebug] you can find this and play with a short test script:
</p>
<c>
w expr Add a global watch-expression. Whenever a watched global
changes the debugger will stop and display the old and new
values.
</c>
<p>
Alternately you might be interested in a conditional breakpoint which will only drop into the debugger if a supplied expression evaluates to true (unlike the typical <em>un</em>conditional breakpoint you get with the normal <c>b LINE</c> that always stops at line number <c>LINE</c>).
</p>
<div class="pmsig"><div class="pmsig-58196">
<p>
The cake is a lie.<br />
The cake is a lie.<br />
The cake is a lie.<br />
</p>
</div></div>
11138933
11138933