跳轉至內容

Perl 程式設計/關鍵字/format

來自華夏公益教科書,開放的書籍,構建開放的世界
上一個:foreach 關鍵字 下一個:formline

Theformatkeyword

[編輯 | 編輯原始碼]

Theformat命令宣告一個圖片格式,供 write 函式使用。

  format
    format Something =
        Test: @<<<<<<<< @||||| @>>>>>
              $str,     $%,    '$' . int($num)
    .
    $str = "widget";
    $num = $cost/$quantity;
    $~ = 'Something';
    write;
上一個:foreach 關鍵字 下一個:formline
華夏公益教科書