No such thing as a small change PerlMonks

### Re: Win32::Start Perl/Tk Script Without Annoying DOS Window

by jsprat (Curate)
 on Jul 04, 2003 at 02:18 UTC ( #271362=note: print w/ replies, xml ) Need Help??
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

Comment on Re: Win32::Start Perl/Tk Script Without Annoying DOS Window
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.)
[untitled node, ID 271391]
by PERLscienceman (Curate) on Jul 04, 2003 at 04:31 UTC

Create A New User
Node Status?
node history
Node Type: note [id://271362]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2016-05-28 06:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
Voting Booth?
What font do you use for programming?

Results (365 votes). Check out past polls.