ЭЛЕКТРОННАЯ БИБЛИОТЕКА КОАПП |
Сборники Художественной, Технической, Справочной, Английской, Нормативной, Исторической, и др. литературы. |
11. FormatsContents: 11.1 What Is a Format?Perl stands, among other things, for "practical extraction and report language." It's time to learn about that "...report language" business. Perl provides the notion of a simple report writing template, called a format. A format defines a constant part (the column headers, labels, fixed text, or whatever) and a variable part (the current data you're reporting). The shape of the format is very close to the shape of the output, similar to formatted output in COBOL or the Using a format consists of doing three things: Most often, the first step is done once (in the program text so that it gets defined at compile-time),[1] and the other two steps are performed repeatedly.
|