in reply to Running Perl program using backquotes

<chant>without code samples it's hard to say </chant>

That said, Program B likely expects an argument to the -t switch, and is using filetoprocess for that. Check that -t requires no additional arguments that would gobble up the filetoprocess argument.

The described behavior would happen if you had a <> in your program somewhere, and in ProgramB.cgi you were shifting off two elements of @ARGV based on the -t switch.

Replies are listed 'Best First'.
Re: Re: Running Perl program using backquotes
by nysus (Parson) on Apr 18, 2001 at 02:16 UTC
    Brother, thanks for your patience...this was exactly what was happening. Slowly but surely, I'll get all this figured out.

    $PM = "Perl Monks'";
    $MCF = "Most Clueless Friar";
    $nysus = $PM . $MCF;