http://www.perlmonks.org?node_id=1063061


in reply to how to set a breakpoint by a code reference

Hi Matq,

..How can I set a breakpoint by a code reference?..

Using $DB::single = 1; at the line where you want to set a breakpoint in your script might be want you want.
Please see perldebug

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me