in reply to Re: How to call a perl script through .exe
in thread How to call a perl script through .exe

my test1.exe was also passing parameters to test2.pl, if I'll make test2.pl as test2.pm then how these parameters will be passed. Also if I am writing use test2,pm in test1,pl then test2,pm GUI window appears first which is wrong. What I want is test1,exe should have a button by clicking on which we can pass parameters to test2,pm and then the test2,pm runs a GUI which should be able to have other buttons too inside it.
  • Comment on Re^2: How to call a perl script through .exe

Replies are listed 'Best First'.
Re^3: How to call a perl script through .exe
by Anonymous Monk on May 09, 2012 at 01:14 UTC

    Hi,

    Think of it like this, test1 and test2 stuff are controlled from the same main window. Test1 is on the first tab of a two tabbed screen, test2 is on the second. While you are working on page 1 you hide page 2, when you click the button to move to page 2 you hide page 1 and show page 2.

    You pass parameters in exactly the same way as you pass them to a sub-routine, because test2 is exactly that.

    It's the same as if you wanted to add a bit of functionality to any existing program. just add another sub-routine and call it, rather than writing a completely different program and calling it through systme or backticks.

    Well, it works for me, but as always - TMTOWTDI.

    J.C.

Re^3: How to call a perl script through .exe
by bulk88 (Priest) on May 09, 2012 at 03:39 UTC
    Use subroutines, not separate PM files, perlsub. Or are you trying to say your having a GUI block problem and you want to use threads or separate processes?