in reply to Manipulating END blocks
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. )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Manipulating END blocks
by DrWhy (Chaplain) on Sep 13, 2007 at 20:16 UTC | |
by perrin (Chancellor) on Sep 13, 2007 at 20:49 UTC |