The control flow
The cfperl control flow is summarized briefly in the POD section of cfperl itself.Listing 6. cfperl control flow documentation
The functions that handle these steps are:
- Top-level parser:
- Control and groups:
- All other sections:
All these steps except the top-level parsing are done inside
cfrun() is the actual interpreter, whereas
parse_line() is the
preparation phase that sorts out sections and imports. Imports have to be
done before interpretation, because their contents may affect interpretation.
Note that the documentation of the control flow is inside the program itself! It is stated in fairly simple terms, which should be understandable to someone experienced with cfengine.