Filehandle Special Variables in Perl

PERLServer Side ProgrammingProgramming Scripts

There are various File Handle related Special Variables in Perl. We have listed them in different below in tabular form:

$|If set to nonzero, forces an fflush(3) after every write or print on the currently selected output channel.
$OUTPUT_AUTOFLUSH
$%The current page number of the currently selected output channel.
$FORMAT_PAGE_NUMBER
$=The current page length (printable lines) of the currently selected output channel. Default is 60.
$FORMAT_LINES_PER_PAGE
$-The number of lines left on the page of the currently selected output channe
$FORMAT_LINES_LEFT
$~The name of the current report format for the currently selected output channel. Default is the name of the filehandle.
$FORMAT_NAME
$^The name of the current top-of-page format for the currently selected output channel. Default is the name of the filehandle with _TOP appended.
$FORMAT_TOP_NAME
raja
Published on 29-Nov-2019 11:55:01
Advertisements