in reply to programming a break point

yes, it is.

Place following line into your program:

$DB::single=1;
and then run with debugger available
perl -d foo.pl
or even better
perl -d:ptkdb foo.pl
or even better more
perl -d:tkdb foo.pl
last mentioned one does not offer same feature set as ptkdb, but very soon will do even much better, as it has large amount of optimizations.

in case of perl -d foo.pl you will need to type 'r' once your program starts to make it run.

update: removed DB::DB(); as it is actually not needed, thanks to wisdom from Eliya