This one: https://github.com/perl-doc-cats/perlfaq/blob/master/lib/perlfaq8.pod#how-can-i-do-an-atexit-or-setjmplongjmp-exception-handling
The title is: How can I do an atexit() or setjmp()/longjmp()? (Exception handling)
While all 3 of those functions are system calls, it seems to me that we are combining 2 questions into 1 answering.
It could be more helpful if the question is split into, say, the following 2:
- How can I do an atexit() to setup an handler to be called at process termination
- How can I do setjmp()/longjmp() for the purpose of exception handling
The current answers looks like a simple concatenation of 2 answers for those 2 questions, so it wouldn't require any extra writing at all, to split this entry.
This one: https://github.com/perl-doc-cats/perlfaq/blob/master/lib/perlfaq8.pod#how-can-i-do-an-atexit-or-setjmplongjmp-exception-handling
The title is: How can I do an atexit() or setjmp()/longjmp()? (Exception handling)
While all 3 of those functions are system calls, it seems to me that we are combining 2 questions into 1 answering.
It could be more helpful if the question is split into, say, the following 2:
The current answers looks like a simple concatenation of 2 answers for those 2 questions, so it wouldn't require any extra writing at all, to split this entry.