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

1) Is it possible to launch a PerlTK script WITHOUT launching the command prompt window? Having 2 windows open for one script seems a little much.

2) Does Perl2EXE work with PerlTK scripts where it'd load as if it were software with a GUI?

I am just curious because I've never really dabbled in this yet but I have seen some example scripts.

Replies are listed 'Best First'.
Re: 2 basic PerlTK questions
by ikegami (Patriarch) on Aug 10, 2006 at 16:38 UTC
Re: 2 basic PerlTK questions
by bart (Canon) on Aug 10, 2006 at 16:44 UTC
    The answer to the second question is "yes". There's a command line switch, I think -gui, that'll mark the created executable as a Windows program, i.e. no console.

    You can still do it manually, the same way that wperl.exe was created from a copy of perl.exe: using a little script that comes with ActivePerl: exetype.bat. You can find it in the Perl/bin directory.

Re: 2 basic PerlTK questions
by renodino (Curate) on Aug 10, 2006 at 16:47 UTC
    The answer to the 2nd question is yes, but you have to pay for the full version of P2X, and use the "-gui" option. I've used it before quite successfully (even including a nice splash page while initing the rest of a large GUI app). I presume PerlApp supports the ability as well; I don't know about PAR/pp (there was some discussion a year or so ago wrt supporting splash pages, since PAR tends to take a *long* time to bootstrap/unbundle contents the first time you execute a bundled app, but I don't think splashes ever got implemented).