There are third party programs you can run that can alter
properties of existing windows to force them on top. Nice
to keep a copy of notepad or something open on top of
everything else. One that I used would allow you to shell
out and execute it and it would update the window of the
program it was called from.
While not a perl solution, it's close...