BillB has asked for the wisdom of the Perl Monks concerning the following question:
I have the following problem. I am running a kornshell script that setup the environment and then invokes perl by using the following code
exec ${ECU_PERL_EXEC} -x $0 $* #!perl -w -d use strict; use Net::SFTP::Foreign; use Mail::Mailer; use Getopt::Std; use File::Temp; use File::Copy; ...
My problem is that when perl starts when it finds the #!perl line it enters Perl with no problem and enters debug. It displays lines, but not the actual code on the line. If I run the script directly under Perl it displays the source. I have looked at the Perl command line options and I can't find out how to have it show the source like it will if Perl is invoked directly.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: display source lines under debug after exec (updates 2)
by LanX (Saint) on Apr 30, 2018 at 18:41 UTC | |
by BillB (Acolyte) on May 01, 2018 at 14:55 UTC | |
by LanX (Saint) on May 01, 2018 at 16:05 UTC | |
by BillB (Acolyte) on May 01, 2018 at 16:58 UTC | |
by LanX (Saint) on May 01, 2018 at 17:25 UTC |