Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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??


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


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

    Log In?
    Username:
    Password:

    What's my password?
    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 chilling in the Monastery: (9)
    As of 2014-07-30 03:23 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      My favorite superfluous repetitious redundant duplicative phrase is:









      Results (229 votes), past polls