The script is running in a while loop. I want to 'catch' window close(upper right cross) signal and perform some clean up before termination. Is that possible in perl?
I heard of END blocks. but that gets executed always regardless of success/failure and I want clean up to be executed only on failure cases like window close,CTRL C/Z,kill signal etc.
I also checked another thread using package 'tk' which is handy for GUI programming,but did not got this case of capturing the window close signal and doing cleanup.
Any help/thoughts are highly appreciated. Thank you.In reply to Catching WINDOW close event and take actions by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |