Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^4: Restarting a Perl script on Windows 10

by pryrt (Abbot)
on Sep 25, 2019 at 13:24 UTC ( [id://11106679]=note: print w/replies, xml ) Need Help??


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

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://11106679]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-24 11:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found