I know you can test if a Win32::GUI window has been minimized, but can you run a sub if a DOS window has been minimized?
Yes.
If you want to "remove" the DOS window during development of a script, you can run it via the command wperl rather than with the command perl.
Cheers, jez.