You would like to use the debuger on programb.pl, if I understand correctly. I doubt it is possible, as the backticks are forking a different process.
But calling a Perl program from another Perl program is somewhat uncommon (although I admit that I have done it a few times, but for very specific reasons) and suggests that there may be an easier way to do it. May be you can put the content of programb.pl into a module and call the right functions of this module. If you do that, you'll be able to enter in debug mode in the functions of the module. I can't tell more, not knowing what your programs are doing and the reasons you decided to use separate Perl programs.
Update: Note that you can redirect STDERR of your forked process into a file, to see any error message printed to standard error. Something like this:
my @result = `perl programb.pl -option 2>error.txt`;
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.