I'm agnostic about the many recommendations here to follow the practice your overlords are seeking to impose. But if you do so, remember that exit() doesn't always exit immediately ...
Output:#!/usr/bin/perl use strict; use warnings; use feature qw/ say /; main(); exit(0); sub main { say 'Exiting'; } END { say 'Not done yet'; }
$ perl 1140667.pl Exiting Not done yet $
In reply to Re: exit this way ( END block will be executed )
by 1nickt
in thread exit this way
by ExReg
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |