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