Perl: the Markov chain saw | |
PerlMonks |
Perl Script Calling Another Perl Scriptby mcogan1966 (Monk) |
on Nov 20, 2003 at 20:07 UTC ( [id://308675]=perlquestion: print w/replies, xml ) | Need Help?? |
mcogan1966 has asked for the wisdom of the Perl Monks concerning the following question:
I know this has probably been answered here before, but I'm going to ask it here anyway.
I have a Perl program (not a CGI script) that needs to call another program. This is not like the one calling many issue I had before. This is a simple one calling one once plan. The second program is going to genereate output that will go back to the first one. I can do this by piping, or I can make copies of this second program and put the relevant code in each Perl program that is going to use it, but both seem like the long way about doing this. The basic concept is something like this: In program one, there will be a line like: It should be noted here that the call will also pass 2 parameters, in the form of variables, $var1 and $var2. and in program two: I'm sure there has got to be a simple solution to this. I'm just not foo enough to have it down in my brain yet.
Back to
Seekers of Perl Wisdom
|
|