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);
In reply to Re^3: is there a way to ensure some code is the last thing that is run?
by BrowserUk
in thread is there a way to ensure some code is the last thing that is run?
by morgon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |