Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: Restarting a Perl script on Windows 10

by petro4213 (Acolyte)
on Sep 25, 2019 at 07:43 UTC ( [id://11106671]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Restarting a Perl script on Windows 10
in thread Restarting a Perl script on Windows 10

I initially missed the option with the command line using wperl. This works well, because it hides the new command window.
  • Comment on Re^3: Restarting a Perl script on Windows 10

Replies are listed 'Best First'.
Re^4: Restarting a Perl script on Windows 10
by pryrt (Abbot) on Sep 25, 2019 at 13:24 UTC
    This works well, because it hides the new command window.

    Yep. wperl.exe's raison d'être is to run GUI-based scripts in Windows without a command-line window. As I linked in another post (but should have quoted, too), the perlwin32#Miscellaneous Things docs say,

    If you want to start a copy of perl without opening a command-line window, use the wperl executable built during the installation process. Usage is exactly the same as normal perl on Windows, except that options like -h don't work (since they need a command-line window to print to).

    The new file extension with its own association that I also mentioned in that other post could help you make GUI-based scripts automatically run with wperl, if you so desired.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11106671]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-25 04:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found