in reply to What is safe to do in an END block?
IMHO stuffing the END block is just not good style. I would use END only in small scripts, bigger programs should be written with few and well known exit points
If you have lots of die calls in your program it might be better to substitute the die calls with a subroutine that does the cleanup before dying. So that you can differentiate between normal and emergency (i.e. die) exit.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What is safe to do in an END block?
by ikegami (Patriarch) on Jun 01, 2008 at 03:28 UTC | |
by jethro (Monsignor) on Jun 01, 2008 at 11:39 UTC | |
by ikegami (Patriarch) on Jun 01, 2008 at 21:04 UTC |