Perl Programming/Keywords/format
The format keyword
The format command declares a picture format for use by the write function.
Syntax
format
Examples
format Something =
Test: @<<<<<<<< @||||| @>>>>>
$str, $%, '$' . int($num)
.
$str = "widget";
$num = $cost/$quantity;
$~ = 'Something';
write;