Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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?
[Corion]: There is a weirdo shim because there is a POE integration for Prima, and if you use that, you can use the POE adapter of AnyEvent. What I'd want is something transport agnostic that parses HTTP or produces HTTP output, so that the communication with ...
[Corion]: ... the socket is done by my code. Ideally that module would not be based on callbacks ;)
[Corion]: Basically, something that decouples the HTTP parsing (+ determining whether to redirect, etc) from the IO
[Corion]: All clients I'm aware of don't do that but issue all IO themselves

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2016-12-07 15:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (130 votes). Check out past polls.