In Phasers§

See primary documentation in context for DOC

The phasers BEGIN, CHECK and INIT are run only in documentation mode when prefixed with the DOC keyword. The compiler is in documentation mode when run with --doc.

DOC INIT { say 'init'  }  # prints 'init' at initialization time when in documentation mode.