![]() |
|
There's more than one way to do things | |
PerlMonks |
Re: Pausing Win32 scriptsby clintp (Curate) |
on Sep 09, 2003 at 02:19 UTC ( #289927=note: print w/replies, xml ) | Need Help?? |
As annoying as it is, Windows users want to run things like this for convenience sake, so I wound up writing one.
What I did was write the module so it created an object and just left it lying around. When the program exited, and all of the conditions were right (Win32, run from Explorer, etc...) it caused a pause to happen during destruction.
That way I could have multiple exit points from the program and not need an explicit pause().
In Section
Seekers of Perl Wisdom
|
|