|We don't bite newbies here... much|
pp and multiple perl scriptsby Dirk80 (Monk)
|on Mar 06, 2012 at 17:31 UTC||Need Help??|
Dirk80 has asked for the
wisdom of the Perl Monks concerning the following question:
Hello wise monks,
I have written several command line perl scripts which I now want to call from a TK GUI. Because it are long jobs and I don't want to have a blocking GUI, I decided the following:
I have a main script which contains the TK GUI. This main script is then calling the other scripts by using inter process communication (fileevent functionality in TK) when the user presses a button. I call these other scripts helper scripts.
Of course I know with the help of you that it would be also possible to do this with threads when I'm very careful. But I think I prefer the way of IPC now. Is this design ok, or is it a bad idea to do it like this? What would be the alternatives?
But now to my main problem. Usually I pack my script with pp into a standalone executable to be able to deploy it. But now I want to pack not only my main script into a standalone executable, but also my helper scripts with all their dependencies.
Here my trials:
Then I tried it with "-M". This option usually checks the dependencies and adds them, but not if the suffix is ".pl".
What is a good way to solve this problem with pp?
Thank you a lot for your help!
SOLUTION is posted here: http://www.perlmonks.org/?node_id=959677