in reply to Re^4: display source lines under debug after exec (updates 2)
in thread display source lines under debug after exec

This works for me, use the -d as first switch and use warnings explicitly.

But I still don't recommend this approach.

#!/usr/bin/perl -d use strict; use warnings; print "1"; print "2"; print "3";

main::(./perl.sh:5): print "1"; DB<1> v 2: use strict; 3: use warnings; 4 5==> print "1"; 6: print "2"; 7: print "3"; DB<1> s main::(./perl.sh:6): print "2"; DB<1> 1v 3: use warnings; 4 5: print "1"; 6==> print "2"; 7: print "3";

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery