in reply to Under the Perl debugger
I found this node and this link and this.
When you use the -d switch &DB::DB is called before each line.