Print out each line before it is executed (like sh -x)

http://search.cpan.org/dist/Devel-Trace/

If you run your program with perl -d:Trace program, this module will print
a message to standard error just before each line is executed. For example,
if your program looks like this:

Authors:
--------
Mark-Jason Dominus

Refresh
Refresh
Source Files
Filename Size Changed Actions
Devel-Trace-0.12.tar.gz 0000003167 3.09 KB over 4 years
cpanspec.yml 0000000474 474 Bytes over 4 years
perl-Devel-Trace.changes 0000000951 951 Bytes over 4 years
perl-Devel-Trace.spec 0000002656 2.59 KB over 4 years
Comments for perl-Devel-Trace 0