in reply to Re^2: is there a way to ensure some code is the last thing that is run?
in thread is there a way to ensure some code is the last thing that is run?
Try to put curlies around the code excluding the END.
In other words make sure the variables are in another scope than the END block.
Tested, doesn't work with your code!
BUT the problem is your circular reference.
It means that a normal destruction can't happen because the ref-count keeps up.
We are talking here about the garbage collection at the very end of a Perl script..
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: is there a way to ensure some code is the last thing that is run?
by haukex (Archbishop) on Feb 03, 2017 at 09:49 UTC | |
by LanX (Saint) on Feb 03, 2017 at 10:00 UTC | |
by ikegami (Patriarch) on Feb 03, 2017 at 18:25 UTC | |
by haukex (Archbishop) on Feb 03, 2017 at 10:53 UTC | |
by ikegami (Patriarch) on Feb 03, 2017 at 18:31 UTC | |
by haukex (Archbishop) on Feb 03, 2017 at 18:40 UTC | |
by LanX (Saint) on Feb 03, 2017 at 10:29 UTC |