Unfortunately, I cannot affect the way the END block(s) are written.
Then add an END block in your code, prior to useing the modules (any modules), whos end blocks you wish to disable, and call thread->exit() within that END block. Eg.
#! perl ... # main.script my $originalPid = $$; END{ return if $$ == $originalPid; require threads; threads->exit; } use Foo; use Bar; ...
In reply to Re^3: How to skip END blocks with threads?
by BrowserUk
in thread How to skip END blocks with threads?
by repellent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |