Why don't you use a flag instead of messing with internal structures?
my $server_running = 0; END { if ($server_running) { ... } }
When appropriate, toggle $server_running.
( Oops, I didn't notice someone had already replied. )
In reply to Re: Manipulating END blocks
by ikegami
in thread Manipulating END blocks
by DrWhy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |