in reply to Viewing perl execution line by line
search.cpan.org is your friend; the second item that shows up for a search for "sh -x" is the answer, Devel::Trace.