411 REFERENCE · Wikibooks
Perl Programming/Keywords/INIT
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Perl index int Keywords
The INIT keyword
INIT is one of five code blocks that are executed at the beginning and end of a program by Perl. It is useful to catch the transition between the compilation phase and execution phase of the main program.
Although it can be prefixed with sub, this is not considered a good programming practice, as these blocks are not a subroutine.
Syntax
INIT BLOCK
See also
BEGIN
CHECK
END
UNITCHECK
Perl index int Keywords