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.