I’m debugging a Perl program started by a bash script. Because the Perl script consist of a huge number of Perl modules and needs to provide extremely complex options, so the bash wrapper here is definitely necessary.
Due to that limitation, in my case I can’t use Perl debugger, which is the easiest way I guess. Then I turn to the old good printf. But, even though I add printfs from one to another places in different modules, nothing actually be printed out to the terminal where I start the bash wrapper.
So, I’d like you to first explain why I can’t get any print info from the inside Perl scripts and how to solve my problem in this case to debug the Perl program.
Presumably your bash script is swallowing the output.
Figure out what the bash is doing, and call perl directly with the same arguments and environment variables.