Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use Template 2.22;
    ...
                             }) || die $tt->error, "\n";
     
    $tt->process("template.txt", {}, "output.txt") || die $tt->error;
    
  2. or download this
    [%- FOREACH c =  EXP() %]
       [% loop.count %]/[% loop.size %] - its size is [% c.size %]
       [% c.item_name %]
       [% c.item_kind %]
    [%- END %]