Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Answer: How to hide/inhibit the console window when launching a Perl script on Windows?

by jdporter (Canon)
on Oct 31, 2006 at 17:37 UTC ( #581534=categorized answer: print w/replies, xml ) Need Help??

Q&A > GUI Programming > How to hide/inhibit the console window when launching a Perl script on Windows? - Answer contributed by jdporter

If you want to stop console windows from popping up when you call commands with backticks, try adding the following block to your script:

BEGIN { Win32::SetChildShowWindow(0) if defined &Win32::SetChildShowWindow; }

This answer was taken from ActiveState's Perl FAQ, and was pointed out by Eradicatore in supressing console with perl2exe and backticks.

  • Comment on Answer: How to hide/inhibit the console window when launching a Perl script on Windows?
  • Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
NodeReaper eyes the thorns in the side
Discipulus : the party puller!
[Discipulus]: I was trying to solve this but i'm not. my regex-fu is stuck at primary school

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2017-12-18 21:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (499 votes). Check out past polls.

    Notices?