http://qs1969.pair.com?node_id=169862


in reply to How to get value from one Perl program to another?

So there are three programs. The first program (let's call this one "master") starts one of the other programs (let's call this one child1) and then gets some values back. These values are then given to the last program (let's call this child2) which does more stuff with them.

If I understand your statement correctly, you want to take the get data from child1 and make it command line parameters for child2. If so you need to check out the 'back-tick' operator (the quote-like thing on the tilda key). Passing stuff as parameter to child2 is easy by either the system command or by opening a pipe.

This is extensively covered in PERL documentation. Look at man perlfunc for the "system" command. Look at man perlop for the "backtick" operator. and look at man perlipc for even niftier ways of making programs talk to each other (with examples even). There is even a man perlopentut which is structured as a tutorial for the "open" command (the part that would help you is called "pipes").

-- termix