Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: STDOUT and a PAR --gui executable

by bbfu (Curate)
on Apr 12, 2004 at 14:54 UTC ( #344401=note: print w/ replies, xml ) Need Help??


in reply to STDOUT and a PAR --gui executable

Easiest way is to leave off the --gui option and manually hide the console window yourself when desired, using Win32::GUI (or similar). Only down side is that the console window will momentarily flash on when the verbose option is not selected.

## output to STDOUT if $verbose mode seleted but no output log if ($verbose && !$createlog && !$logfile) { open (LOGFILE, ">&1") or dying($!); } else { use Win32::GUI; my ($DOS) = Win32::GUI::GetPerlWindow(); Win32::GUI::Hide($DOS); }

bbfu
Black flowers blossom
Fearless on my breath


Comment on Re: STDOUT and a PAR --gui executable
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://344401]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2014-09-24 03:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (245 votes), past polls