compile phase
Perl
Any time before Perl starts running your main program. See also "run phase". Compile phase is mostly spent in "compile time", but may also be spent in "run time" when BEGIN blocks, use declarations, or constant subexpressions are being evaluated. The startup and import code of any use declaration is also run during compile phase.