develooper Front page | perl.beginners | Postings from June 2003

Passing control to another perl program....

Thread Next
From:
Hamish Whittal
Date:
June 23, 2003 13:02
Subject:
Passing control to another perl program....
Message ID:
1056398662.977.16.camel@defender
Hi all,

I have this scenario:
I have a 'main' program that needs to call on progA under condtions A,
progB under conditions B, etc.

Now, I would like the progA, progB, progC to remain independent of the
'main' program at all times. The only thing I would like to connect them
is the paramteres....
Yes, I know this sounds like the place to use Modules and Packages,
however, I don't think a module can have a 'main' program of it's own.
The reasons for keeping this independence is to keep the whole system
portable and modular. At runtime, the users may choose to leave out
progC and hence the program will not even load this 'program' or set of
programs....

Can this be done?

I am not sure I am explaining this correctly, so if not, I will try
again.

Thanks in advance.
Hamish


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About