Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

invoking perl from perl

Status
Not open for further replies.

noyk

MIS
Feb 20, 2009
23
MY
Hi everyone.

I have a perl program that is invoked by the command

match.pl A B

the problem is that there is a few hundred combination of A and B that is possible

so, i am thinking of writing a new program with a small loop that generate the command to invoke the match.pl

so, how do I do this? i.e. invoking perl from a second program?

 
Hi

noyk said:
so, how do I do this? i.e. invoking perl from a second program?
If the "second program" is another [tt]perl[/tt] script, see the [tt]system[/tt] and [tt]exec[/tt] function and the [tt]``[/tt] ( backtick ) operator. Otherwise see the documentation of the "second program"s programming language.

( Note that running a [tt]perl[/tt] script from another [tt]perl[/tt] script usually is not the suggested way. )

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top