http://www.perlmonks.org?node_id=271362


in reply to Win32::Start Perl/Tk Script Without Annoying DOS Window

Or if you use ActiveState Perl (maybe others?), Just use wperl.exe: wperl c:\yourdir\yourTKscript.pl.

Update: I must not have been clear enough. In \Perl\bin there is an executable called wperl.exe that will run a script without opening the command prompt. It's simply a perl interpreter compiled as a Windows application rather than a console application.

Try this - Create a shortcut on the desktop with wperl c:\path\to\script.pl. Double click it and see what happens. Look ma! No DOS box! ;)

Update 2:podmaster informs me that wperl comes with all perls compiled on win32

Replies are listed 'Best First'.
Re: Re: Win32::Start Perl/Tk Script Without Annoying DOS Window
by PERLscienceman (Curate) on Jul 04, 2003 at 15:14 UTC
    Excellent! This works perfectly!
    I will use this from now on under Win32.
    Thank you for the clarification.
    It makes things much simpler.
      Ah, but does anyone have any idea how to keep other processes from spawning new DOS windows? For example, I need to run cvs commands from a script and each time a run one I get a new DOS window. This happens whether I do a 'system( "cvs ..." )' or an 'open(CVS, "cvs ... |"); (For that matter, it happens on a `pwd`.)
A reply falls below the community's threshold of quality. You may see it by logging in.