http://qs321.pair.com?node_id=729012


in reply to Re: Hiding DOS windows that accompany TK
in thread Hiding DOS windows that accompany TK

Did that actually work for you? I tried something similar from the Cookbook, although it may have been an earlier edition and couldn't get it to work. However after trolling the net, I found that by adding
$Win32::Process::Create::ProcessObj -> Resume();
after the code that you have, did the trick.


To disagree, one doesn't have to be disagreeable - Barry Goldwater

Replies are listed 'Best First'.
Re^3: Hiding DOS windows that accompany TK
by Erez (Priest) on Dec 09, 2008 at 08:35 UTC

    It did and it does. I don't recall whether this is lifted verbatim off the cookbook or whether I altered anything. I placed that code in a file a year or two ago, and have been only updating the path, and calling it.

    "A core tenant of the greater Perl philosophy is to trust that the developer knows enough to solve the problem" - Jay Shirley, A case for Catalyst.

      Interesting. I could never get it to work without the last line. Maybe I had an older incarnation of the cookbook.


      To disagree, one doesn't have to be disagreeable - Barry Goldwater