Sunday, September 7, 2008

Hiding the console for a perl app/script while in windows.

I was looking for a way to hide the console in perl and found this site. There are a lot of explanations on how to do this. The one I found that worked for my purposes:

use Win32::GUI;
my $hw = Win32::GUI::GetPerlWindow();

You will have to install the Win32-GUI module. You can do that by hitting start->run then typing ppm, making sure all packages are show under the view menu(ctrl+1). Do a search for WIN32 GUI, mark the package for install by right clicking and hitting the arrow sign at the top of the window.

No comments: