Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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

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

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 exploiting the Monastery: (5)
As of 2014-08-02 01:59 GMT
Find Nodes?
    Voting Booth?

    Who would be the most fun to work for?

    Results (53 votes), past polls