in reply to how to set a breakpoint by a code reference
I'm not sure where you are getting
from. The doc I see says this, which seems to be the behaviour you are triggering:b $mysubref
That is, you are setting a break point at the current line (because you specify no line) if $mysubref is true.b [line] [condition] Set a breakpoint before the given line. If a condition is specified, it's evaluated each time the statement is reached: a breakpoint is taken only if the condition is true. Breakpoints may only be set on lines that begin an executable statement. Conditions don't use "if":
--
A math joke: r = | |csc(θ)|+|sec(θ)| |-| |csc(θ)|-|sec(θ)| |
A math joke: r = | |csc(θ)|+|sec(θ)| |-| |csc(θ)|-|sec(θ)| |
In Section
Seekers of Perl Wisdom