pg has asked for the wisdom of the Perl Monks concerning the following question:

When I run Tk GUI script, I would like the command window closed. That is the window where I type "perl -w blah.pl".

Doesn't matter whether involve coding, preferablely no coding.

I am looking for something like javaw in Java.

  • Comment on close command window when running tk script

Replies are listed 'Best First'.
Re: close command window when running tk script
by Errto (Vicar) on Jul 17, 2005 at 23:36 UTC
    If you're on Windows you can use wperl, which does exactly what you want. On Unix you can just run perl as a background process.

      wperl is what I wanted. Thanks!

        I use wperl as well but just FYI there are some other solutions- What About the Console Window?, I can't comment on their veracity however :)

        --
        Murray Barton
        Do not seek to follow in the footsteps of the wise. Seek what they sought. -Basho

Re: close command window when running tk script
by GrandFather (Saint) on Jul 17, 2005 at 23:40 UTC

    In Windows I often use shortcuts to launch Tk apps so I can drag and drop onto them. You can hide the window by setting the shortcut property "Run:" to "Minimized".


    Perl is Huffman encoded by design.