Filehandle Special Variables
Most of these variables apply only when using formats. See Section 4.11 later in this chapter.
$|$OUTPUT_AUTOFLUSHIf set to nonzero, forces an
fflush(3)after everywriteorprinton the currently selected output channel.$%$FORMAT_PAGE_NUMBERThe current page number of the currently selected output channel.
$=$FORMAT_LINES_PER_PAGEThe current page length (printable lines) of the currently selected output channel. Default is 60.
$-$FORMAT_LINES_LEFTThe number of lines left on the page of the currently selected output channel.
$~$FORMAT_NAMEThe name of the current report format for the currently selected output channel. Default is the name of the filehandle.
$^$FORMAT_TOP_NAMEThe name of the current top-of-page format for the currently selected output channel. Default is the name of the filehandle with
_TOPappended.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access