Perl Programming/Keywords/UNITCHECK

From Wikibooks, open books for an open world
Jump to navigation Jump to search
Previous: undef Keywords Next: unless

The UNITCHECK keyword[edit | edit source]

UNITCHECK 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[edit | edit source]


See also[edit | edit source]

Previous: undef Keywords Next: unless