in reply to Perl set -x emulation

From perldoc perlrun:
If you're just trying to get a print out of each line of Perl + code as it executes, the way that "sh -x" provides for shell scrip +ts, you can't use Perl's -D switch. Instead do this # If you have "env" utility env=PERLDB_OPTS="NonStop=1 AutoTrace=1 frame=2" perl -dS pr +ogram # Bourne shell syntax $ PERLDB_OPTS="NonStop=1 AutoTrace=1 frame=2" perl -dS prog +ram # csh syntax % (setenv PERLDB_OPTS "NonStop=1 AutoTrace=1 frame=2"; perl + -dS program) See perldebug for details and variations.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.