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.
In reply to Re^4: Restarting a Perl script on Windows 10
by pryrt
in thread Restarting a Perl script on Windows 10
by petro4213
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |