PERLDB_OPTS="NonStop=1 AutoTrace=1 frame=31" perl -dS yourscript.pl