Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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); }

Black flowers blossom
Fearless on my breath

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2016-10-28 04:32 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (375 votes). Check out past polls.