|
The sequence is:
1. During the BEGIN phase, Foo.pm is loaded and its warning statement is executed.
2. During the CHECK phase, accessors are generated.
3. During the 'run' phase, the warning statement in 'main' is executed.
Accessors are also generated, if needed, the first time a 'new' call is made. This handles the cases when fields are dynamically generated using 'create_field', when loading is delayed via 'require', and when used under 'mod_perl'.
See 'perldoc perlmod' for info on the various phases.
|