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


in reply to Invoking the debugger on yourself

I'm not sure I would have modified my script to include -d on the shebang line. That's the kind of thing I'd forget to take out. Is there some reason you didn't want to start your script with:
PERLDB_OPTS=nonstop perl -wd myprogram myarg1 myarg2...
? Or even:
PERLDB_OPTS=nonstop PERL5OPT=-wd myprogram myarg1 myarg2...