sub foo { ... DB::break(); # force a call to the debugger here ... } [download]
In reply to programming a break point by perl5ever