in reply to How to skip END blocks with threads?

I hope you know that $skip_end is not the same in the child as it is in the parent. If you want you can
use threads::shared; my $skip_end :shared;
replace the fork with creating a thread and then you can use $skip_end across threads.