411 REFERENCE · Wikibooks
Perl Programming/Keywords/END
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Perl elsif endgrent Keywords
The END keyword
END is one of five code blocks that are executed at the beginning and end of a program by Perl. It creates the block that is executed short before the Perl interpreter stops execution. This block is even executed after a die operation, but not after an exec or when killed by a OS signal.
Although it can be prefixed with sub, this is not considered a good programming practice, as these blocks are not a subroutine.
Syntax
END BLOCK
See also
BEGIN
CHECK
INIT
UNITCHECK
Perl elsif endgrent Keywords