james28909 has asked for the wisdom of the Perl Monks concerning the following question:
I lack the knowledge on how to resolve a certain problem, if you could even call it a problem... I am helping a friend of mine with some tasks, and short of making a text file and putting in data there, is there any way for me to return data to his program?
Essentially what I need to happen is my friend calls my script with some args, and based on those args, I will get data and print it to console. But is there a way for me to return the actual data to his programvia scalar/array/hash? Will he need to declare a variable that I can fill with data?
Any insight would be awesome! thanks for reading.EDIT: To add more to this, and just incase there are any questions about this, my friend has a program (exe) on windows. He is using my script for some added functionality. As it stands right now, I output my data to console and he picks it up from there, no problem. What i want to know is, Are there any other ways for my script to return data to his program so i wouldnt need to print to cmd.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Returning data to parent program
by Corion (Patriarch) on Nov 12, 2015 at 08:29 UTC | |
|
Re: Returning data to parent program
by Discipulus (Canon) on Nov 12, 2015 at 08:14 UTC | |
|
Re: Returning data to parent program (popen)
by tye (Sage) on Nov 12, 2015 at 14:33 UTC | |
|
Re: Returning data to parent program
by Anonymous Monk on Nov 12, 2015 at 08:06 UTC | |
|
Re: Returning data to parent program
by james28909 (Deacon) on Nov 13, 2015 at 19:25 UTC |