Perl Programming/Keywords/format

Previous: foreach Keywords Next: formline

The format keyword edit

The format command declares a picture format for use by the write function.

Syntax edit

  format

Examples edit

    format Something =
        Test: @<<<<<<<< @||||| @>>>>>
              $str,     $%,    '$' . int($num)
    .
    $str = "widget";
    $num = $cost/$quantity;
    $~ = 'Something';
    write;
Previous: foreach Keywords Next: formline