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?
If all you are after doing it avoiding global cleanup, you could do:
package Blubb; sub new { my $this = bless {}; $this->{circular} = $this; } sub DESTROY { print "DESTROY\n"; } package MAIN; use POSIX (); my $b = Blubb->new; POSIX::_exit(0);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: is there a way to ensure some code is the last thing that is run?
by morgon (Priest) on Feb 03, 2017 at 15:06 UTC |