System variables that control how write sends output to a file
$~ contains the name of the print format.
$^ contains the name of the print format being used as a page header.
$= contains the number of lines per printed page.
$- contains the number of lines left on the current page.
printf formats an individual line of text using format specifiers.