This is a great idea: automatically detect when a module is launched via clicking on an icon in Explorer rather than from the command line, and halting to prevent the window closing when an error occurs.
Alas, it's not perfect. It cannot detect when a separate window is launched from within the command line.
It also does not trap Ctrl-Breaks.
Nor is there a way to customize the error message.
Even then, this is a must-have for Win32 Perl developers.